fix: wait for worker exit at pool destroy
[poolifier.git] / tests / pools / thread / dynamic.test.js
index 1de664463edf589f50c0a46ed58bb159209a37fd..65d162399ab798aad102f6978de8a37a5c36a015 100644 (file)
@@ -125,7 +125,7 @@ describe('Dynamic thread pool test suite', () => {
       longRunningPool.execute()
     }
     expect(longRunningPool.workerNodes.length).toBe(max)
-    await sleep(1500)
+    await sleep(1000)
     // Here we expect the workerNodes to be at the max size since the task is still executing
     expect(longRunningPool.workerNodes.length).toBe(max)
     // We need to clean up the resources after our test