+ private async waitChargingStationsStopped(): Promise<string> {
+ return new Promise<string>((resolve, reject) => {
+ const waitTimeout = setTimeout(() => {
+ const message = `Timeout ${formatDurationMilliSeconds(
+ Constants.STOP_SIMULATOR_TIMEOUT,
+ )} reached at stopping charging stations`;
+ console.warn(chalk.yellow(message));
+ reject(new Error(message));
+ }, Constants.STOP_SIMULATOR_TIMEOUT);