repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests: simplify tasks usage reset
[poolifier.git]
/
tests
/
pools
/
abstract
/
abstract-pool.test.js
diff --git
a/tests/pools/abstract/abstract-pool.test.js
b/tests/pools/abstract/abstract-pool.test.js
index 0b33e36b85005dd843f8577d4bb0c6f34bee9c47..4224f4ffe7a9e87bdc86169ef66a7b1437352c53 100644
(file)
--- 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,
const { expect } = require('expect')
const {
FixedClusterPool,
+ DynamicThreadPool,
FixedThreadPool,
WorkerChoiceStrategies
} = require('../../../lib/index')
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 () => {
})
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'
)
numberOfWorkers,
'./tests/worker-files/thread/testWorker.js'
)