From: Jérôme Benoit Date: Mon, 18 Dec 2023 21:50:50 +0000 (+0100) Subject: fix: fix pool destroying with tasks queuing enabled X-Git-Tag: v3.1.7~4 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=6a416dfca5fa8a25308fb8e452b684cb40573ca1;p=poolifier.git fix: fix pool destroying with tasks queuing enabled Signed-off-by: Jérôme Benoit --- diff --git a/tests/pools/abstract-pool.test.mjs b/tests/pools/abstract-pool.test.mjs index 984d8e01..59da4cd8 100644 --- a/tests/pools/abstract-pool.test.mjs +++ b/tests/pools/abstract-pool.test.mjs @@ -1332,7 +1332,7 @@ describe('Abstract pool test suite', () => { await pool.destroy() const elapsedTime = performance.now() - startTime expect(tasksFinished).toBe(0) - expect(elapsedTime).toBeLessThanOrEqual(tasksFinishedTimeout + 200) + expect(elapsedTime).toBeLessThanOrEqual(tasksFinishedTimeout + 300) }) it('Verify that pool asynchronous resource track tasks execution', async () => {