test: fix pool destroy() test flakiness, take 3
[poolifier.git] / tests / pools / abstract-pool.test.mjs
index b141aaae09402a6436a798ebe86d60693cb9d1e2..9cc284d60213267733a364ce3071d2b3a96d472b 100644 (file)
@@ -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 () => {