From e2300d0415539dfc5cc5a429836d83d210e5e870 Mon Sep 17 00:00:00 2001 From: Antoine Detailleur <detailleur@fortiss.org> Date: Mon, 3 May 2021 15:47:27 +0200 Subject: [PATCH] [NRRPLT-7930] repair 2th test (maybe) --- .../execution/__tests__/experiment-execution-service.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/experiments/execution/__tests__/experiment-execution-service.test.js b/src/services/experiments/execution/__tests__/experiment-execution-service.test.js index f34a08d..1291473 100644 --- a/src/services/experiments/execution/__tests__/experiment-execution-service.test.js +++ b/src/services/experiments/execution/__tests__/experiment-execution-service.test.js @@ -13,6 +13,7 @@ import ExperimentExecutionService from '../../../../services/experiments/executi import ServerResourcesService from '../../../../services/experiments/execution/server-resources-service'; import RunningSimulationService from '../../../../services/experiments/execution/running-simulation-service'; import { EXPERIMENT_STATE } from '../../../../services/experiments/experiment-constants.js'; +import ErrorHandlerService from '../../../../services/error-handler-service'; //jest.setTimeout(10000); @@ -78,7 +79,7 @@ test('should go through the list of available servers when trying to start an ex MockAvailableServers.forEach(server => { expect(ServerResourcesService.instance.getServerConfig).toHaveBeenCalledWith(server.id); }); - expect(console.error).toHaveBeenCalled(); + expect(ErrorHandlerService.instance.startSimulationError).toHaveBeenCalled(); done(); }); }); -- GitLab