Tests: simplify tasks usage reset
[poolifier.git] / tests / pools / abstract / abstract-pool.test.js
index 0b33e36b85005dd843f8577d4bb0c6f34bee9c47..4224f4ffe7a9e87bdc86169ef66a7b1437352c53 100644 (file)
@@ -1,6 +1,7 @@
 const { expect } = require('expect')
 const {
   FixedClusterPool,
+  DynamicThreadPool,
   FixedThreadPool,
   WorkerChoiceStrategies
 } = require('../../../lib/index')
@@ -233,7 +234,8 @@ describe('Abstract pool test suite', () => {
   })
 
   it('Verify that worker pool tasks usage are reset at worker choice strategy change', async () => {
-    const pool = new FixedThreadPool(
+    const pool = new DynamicThreadPool(
+      numberOfWorkers,
       numberOfWorkers,
       './tests/worker-files/thread/testWorker.js'
     )