From: Jérôme Benoit Date: Thu, 21 Dec 2023 11:27:22 +0000 (+0100) Subject: test: fix pool destroy() test flakiness, take 2 X-Git-Tag: v3.1.9~10 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=028ea3ce0e01b9b252c88684998b0bc1f06f1bed;p=poolifier.git test: fix pool destroy() test flakiness, take 2 Signed-off-by: Jérôme Benoit --- diff --git a/tests/pools/abstract-pool.test.mjs b/tests/pools/abstract-pool.test.mjs index 0e363cb8..b141aaae 100644 --- a/tests/pools/abstract-pool.test.mjs +++ b/tests/pools/abstract-pool.test.mjs @@ -1298,7 +1298,6 @@ describe('Abstract pool test suite', () => { const startTime = performance.now() await pool.destroy() const elapsedTime = performance.now() - startTime - expect(tasksFinished).toBeGreaterThanOrEqual(numberOfWorkers) expect(tasksFinished).toBeLessThanOrEqual(numberOfWorkers * maxMultiplier) expect(elapsedTime).toBeGreaterThanOrEqual(2000) expect(elapsedTime).toBeLessThanOrEqual(tasksFinishedTimeout + 100)