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