From: Jérôme Benoit Date: Sun, 31 Dec 2023 13:48:01 +0000 (+0100) Subject: test: align task timeout expectation X-Git-Tag: v3.1.14~7 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=14d5e18329a40faffe8c95a9323d72872efdc3de;p=poolifier.git test: align task timeout expectation Signed-off-by: Jérôme Benoit --- diff --git a/tests/pools/abstract-pool.test.mjs b/tests/pools/abstract-pool.test.mjs index 0bde6b90..b4b9d706 100644 --- a/tests/pools/abstract-pool.test.mjs +++ b/tests/pools/abstract-pool.test.mjs @@ -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 () => {