refactor: rename constant to a more sensible name
[e-mobility-charging-stations-simulator.git] / src / charging-station / Bootstrap.ts
index 88c516bddeb527be0c11cf03ac8902c3e16fda87..05bd7053033250988e3b9dc66dab275a16ac5f34 100644 (file)
@@ -215,11 +215,11 @@ export class Bootstrap extends EventEmitter {
     return new Promise<string>((resolve, reject) => {
       const waitTimeout = setTimeout(() => {
         const message = `Timeout ${formatDurationMilliSeconds(
-          Constants.STOP_SIMULATOR_TIMEOUT,
+          Constants.STOP_CHARGING_STATIONS_TIMEOUT,
         )} reached at stopping charging stations`;
         console.warn(chalk.yellow(message));
         reject(new Error(message));
-      }, Constants.STOP_SIMULATOR_TIMEOUT);
+      }, Constants.STOP_CHARGING_STATIONS_TIMEOUT);
       waitChargingStationEvents(
         this,
         ChargingStationWorkerMessageEvents.stopped,