fix: wait for worker exit at pool destroy
[poolifier.git] / tests / pools / cluster / dynamic.test.js
index 78bdc2149740b1acc02bff301f7f75bb64e7627b..753f59af309dfd1e83053f0e1496682f118bb7dd 100644 (file)
@@ -125,7 +125,7 @@ describe('Dynamic cluster 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