test: fix test flakiness
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 21 Dec 2023 18:45:03 +0000 (19:45 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 21 Dec 2023 18:45:03 +0000 (19:45 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
tests/pools/abstract-pool.test.mjs

index 19c57aed3d8295016be84407f7bbdd3cfce186b4..1e6bf3adb012de185bfb7d69287126f534b9c953 100644 (file)
@@ -1308,7 +1308,7 @@ describe('Abstract pool test suite', () => {
     const elapsedTime = performance.now() - startTime
     expect(tasksFinished).toBeLessThanOrEqual(numberOfWorkers * maxMultiplier)
     expect(elapsedTime).toBeGreaterThanOrEqual(2000)
-    expect(elapsedTime).toBeLessThanOrEqual(tasksFinishedTimeout + 300)
+    expect(elapsedTime).toBeLessThanOrEqual(tasksFinishedTimeout + 400)
   })
 
   it('Verify that destroy() waits until the tasks finished timeout is reached', async () => {