]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commitdiff
fix(tests): remove unnecessary double flushMicrotasks in skipped test
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 16 Mar 2026 22:24:19 +0000 (23:24 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 16 Mar 2026 22:24:19 +0000 (23:24 +0100)
tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-RequestStopTransaction.test.ts

index 63939a926e0a14952fd994278726f475e179c9f2..51e842e82b6aeccf2c592562c047387269e7f355 100644 (file)
@@ -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)