From: Jérôme Benoit Date: Mon, 18 Dec 2023 21:58:51 +0000 (+0100) Subject: test: refine expectation X-Git-Tag: v3.1.7~3 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=6d41131f0c010908be4699a2412ebea9e70c1c4b;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 59da4cd8..0f61dbd8 100644 --- a/tests/pools/abstract-pool.test.mjs +++ b/tests/pools/abstract-pool.test.mjs @@ -1304,7 +1304,7 @@ describe('Abstract pool test suite', () => { const elapsedTime = performance.now() - startTime expect(tasksFinished).toBe(numberOfWorkers * maxMultiplier) expect(elapsedTime).toBeGreaterThanOrEqual(2000) - expect(elapsedTime).toBeLessThanOrEqual(tasksFinishedTimeout) + expect(elapsedTime).toBeLessThanOrEqual(tasksFinishedTimeout + 100) }) it('Verify that destroy() waits until the tasks finished timeout is reached', async () => {