repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test: fix 'Verify available strategies can be set after pool creation'
[poolifier.git]
/
tests
/
pools
/
selection-strategies
/
selection-strategies.test.js
diff --git
a/tests/pools/selection-strategies/selection-strategies.test.js
b/tests/pools/selection-strategies/selection-strategies.test.js
index 3292ce5686a5f6a014250ec3373510940d196cf3..52285d7163f1228a5691b26bb8e1b19e6bf12af5 100644
(file)
--- a/
tests/pools/selection-strategies/selection-strategies.test.js
+++ b/
tests/pools/selection-strategies/selection-strategies.test.js
@@
-53,8
+53,7
@@
describe('Selection strategies test suite', () => {
const pool = new DynamicThreadPool(
min,
max,
const pool = new DynamicThreadPool(
min,
max,
- './tests/worker-files/thread/testWorker.js',
- { workerChoiceStrategy }
+ './tests/worker-files/thread/testWorker.js'
)
pool.setWorkerChoiceStrategy(workerChoiceStrategy)
expect(pool.opts.workerChoiceStrategy).toBe(workerChoiceStrategy)
)
pool.setWorkerChoiceStrategy(workerChoiceStrategy)
expect(pool.opts.workerChoiceStrategy).toBe(workerChoiceStrategy)