fix: fix pool destroying with tasks queuing enabled
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 18 Dec 2023 21:50:50 +0000 (22:50 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 18 Dec 2023 21:50:50 +0000 (22:50 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
tests/pools/abstract-pool.test.mjs

index 984d8e018b86daff68dd690aef37e4a3a01f4bea..59da4cd8907cb4e526a0cd8b044b2e01bc82787f 100644 (file)
@@ -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 () => {