X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fpools%2Fabstract%2Fabstract-pool.test.js;h=4224f4ffe7a9e87bdc86169ef66a7b1437352c53;hb=7fd82a1cb4d9d43e0f44333db35d3c4ad694e010;hp=0b33e36b85005dd843f8577d4bb0c6f34bee9c47;hpb=fd7ebd496ee8e1f95c6c1dc2af5153d73ec3daab;p=poolifier.git diff --git a/tests/pools/abstract/abstract-pool.test.js b/tests/pools/abstract/abstract-pool.test.js index 0b33e36b..4224f4ff 100644 --- a/tests/pools/abstract/abstract-pool.test.js +++ b/tests/pools/abstract/abstract-pool.test.js @@ -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' )