From: Jérôme Benoit Date: Sun, 31 Dec 2023 13:44:28 +0000 (+0100) Subject: test: refine expectation X-Git-Tag: v3.1.14~8 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=50f9f61a7659c21cc53f3aa2c6aa60e90bf09a1a;p=poolifier.git test: refine 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 ccd24231..0bde6b90 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 + 400) + expect(elapsedTime).toBeLessThanOrEqual(tasksFinishedTimeout + 500) }) it('Verify that destroy() waits until the tasks finished timeout is reached', async () => {