From 9653bc1e0d81648aee1ba2a2213d36c0de7c47b3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 16 Mar 2026 23:24:19 +0100 Subject: [PATCH] fix(tests): remove unnecessary double flushMicrotasks in skipped test --- ...CPP20IncomingRequestService-RequestStopTransaction.test.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-RequestStopTransaction.test.ts b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-RequestStopTransaction.test.ts index 63939a92..51e842e8 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-RequestStopTransaction.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-RequestStopTransaction.test.ts @@ -267,10 +267,6 @@ await describe('F03 - Remote Stop Transaction', async () => { response ) - // Two flushes needed: the async chain in requestStopTransaction traverses a - // dynamic import() in checkConnectorStatusTransition, which may resolve after - // the first setImmediate on some platforms (observed on macOS + Node 22). - await flushMicrotasks() await flushMicrotasks() assert.strictEqual(requestHandlerMock.mock.callCount(), 2) -- 2.53.0