test: fix 'Verify available strategies can be set after pool creation'
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 14 Apr 2023 15:24:57 +0000 (17:24 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 14 Apr 2023 15:24:57 +0000 (17:24 +0200)
test

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
tests/pools/selection-strategies/selection-strategies.test.js

index 3292ce5686a5f6a014250ec3373510940d196cf3..52285d7163f1228a5691b26bb8e1b19e6bf12af5 100644 (file)
@@ -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)