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

index 0bde6b90c775dc8368a56d618d0cdb134a7bb445..b4b9d706d0a10c9fa3fbb5ff1a24c1af81f46624 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 + 500)
+    expect(elapsedTime).toBeLessThanOrEqual(tasksFinishedTimeout + 800)
   })
 
   it('Verify that destroy() waits until the tasks finished timeout is reached', async () => {