test: refine expectation
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 31 Dec 2023 13:44:28 +0000 (14:44 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 31 Dec 2023 13:44:28 +0000 (14:44 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
tests/pools/abstract-pool.test.mjs

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