From: Jérôme Benoit Date: Fri, 14 Apr 2023 15:24:57 +0000 (+0200) Subject: test: fix 'Verify available strategies can be set after pool creation' X-Git-Tag: v2.4.9~26 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=ec82cfa1f7bd62462991c1c034f2fb473f660440;p=poolifier.git test: fix 'Verify available strategies can be set after pool creation' test Signed-off-by: Jérôme Benoit --- diff --git a/tests/pools/selection-strategies/selection-strategies.test.js b/tests/pools/selection-strategies/selection-strategies.test.js index 3292ce56..52285d71 100644 --- 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, - './tests/worker-files/thread/testWorker.js', - { workerChoiceStrategy } + './tests/worker-files/thread/testWorker.js' ) pool.setWorkerChoiceStrategy(workerChoiceStrategy) expect(pool.opts.workerChoiceStrategy).toBe(workerChoiceStrategy)