test: fix pool destroy() test flakiness, take 3
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 21 Dec 2023 11:32:06 +0000 (12:32 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 21 Dec 2023 11:32:06 +0000 (12:32 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
tests/pools/abstract-pool.test.mjs

index b141aaae09402a6436a798ebe86d60693cb9d1e2..9cc284d60213267733a364ce3071d2b3a96d472b 100644 (file)
@@ -1300,7 +1300,7 @@ describe('Abstract pool test suite', () => {
     const elapsedTime = performance.now() - startTime
     expect(tasksFinished).toBeLessThanOrEqual(numberOfWorkers * maxMultiplier)
     expect(elapsedTime).toBeGreaterThanOrEqual(2000)
-    expect(elapsedTime).toBeLessThanOrEqual(tasksFinishedTimeout + 100)
+    expect(elapsedTime).toBeLessThanOrEqual(tasksFinishedTimeout + 200)
   })
 
   it('Verify that destroy() waits until the tasks finished timeout is reached', async () => {