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

index c0ba50b07b37b63ea7c28eb5b8df8bef829ae529..19c57aed3d8295016be84407f7bbdd3cfce186b4 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 + 200)
+    expect(elapsedTime).toBeLessThanOrEqual(tasksFinishedTimeout + 300)
   })
 
   it('Verify that destroy() waits until the tasks finished timeout is reached', async () => {