test: add missing pool destroy() calls
[poolifier.git] / tests / pools / abstract / abstract-pool.test.js
index 3b3c92c018ef186e0dc3b267b8ef68f889c066aa..945ee8e7acf6417b2e6816e87bce1dffce48265d 100644 (file)
@@ -1172,6 +1172,8 @@ describe('Abstract pool test suite', () => {
       'factorial',
       'fibonacci'
     ])
+    await dynamicThreadPool.destroy()
+    await fixedClusterPool.destroy()
   })
 
   it('Verify that multiple task functions worker is working', async () => {
@@ -1228,5 +1230,6 @@ describe('Abstract pool test suite', () => {
         ).toBeGreaterThanOrEqual(0)
       }
     }
+    await pool.destroy()
   })
 })