From: Jérôme Benoit Date: Thu, 21 Dec 2023 18:41:00 +0000 (+0100) Subject: test: fix test flakiness X-Git-Tag: v3.1.9~6 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=3c7cd737d5dca6fe29f65a5c1b21b4974a4bb34b;p=poolifier.git test: fix test flakiness Signed-off-by: Jérôme Benoit --- diff --git a/tests/pools/abstract-pool.test.mjs b/tests/pools/abstract-pool.test.mjs index c0ba50b0..19c57aed 100644 --- a/tests/pools/abstract-pool.test.mjs +++ b/tests/pools/abstract-pool.test.mjs @@ -1308,7 +1308,7 @@ describe('Abstract pool test suite', () => { const elapsedTime = performance.now() - startTime expect(tasksFinished).toBeLessThanOrEqual(numberOfWorkers * maxMultiplier) expect(elapsedTime).toBeGreaterThanOrEqual(2000) - expect(elapsedTime).toBeLessThanOrEqual(tasksFinishedTimeout + 200) + expect(elapsedTime).toBeLessThanOrEqual(tasksFinishedTimeout + 300) }) it('Verify that destroy() waits until the tasks finished timeout is reached', async () => {