const { expect } = require('expect')
const {
FixedClusterPool,
+ DynamicThreadPool,
FixedThreadPool,
WorkerChoiceStrategies
} = require('../../../lib/index')
})
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'
)