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,
static readonly MAX_RANDOM_INTEGER = 281474976710654;
- static readonly STOP_SIMULATOR_TIMEOUT = 120000; // Ms
+ static readonly STOP_CHARGING_STATIONS_TIMEOUT = 120000; // Ms
static readonly EMPTY_FROZEN_OBJECT = Object.freeze({});
static readonly EMPTY_FUNCTION = Object.freeze(() => {