Tests: simplify tasks usage reset
[poolifier.git] / tests / pools / selection-strategies / worker-choice-strategy-context.test.js
index 5ffd66a384ec20decf6aee953e985886bc575a63..c30bda737d35637f2b88020f0ed8441a0fb5c020 100644 (file)
@@ -45,9 +45,9 @@ describe('Worker choice strategy context test suite', () => {
     sinon.restore()
   })
 
-  after(() => {
-    fixedPool.destroy()
-    dynamicPool.destroy()
+  after(async () => {
+    await fixedPool.destroy()
+    await dynamicPool.destroy()
   })
 
   it('Verify that execute() return the worker chosen by the strategy with fixed pool', () => {