build(deps-dev): apply updates
[poolifier.git] / tests / pools / selection-strategies / weighted-round-robin-worker-choice-strategy.test.mjs
index c659b31e7bcc2dec1db31a0a7554b1b82cb6c549..25c262fde5ea946a1a1de8b2a18ca8417636a02d 100644 (file)
@@ -1,5 +1,4 @@
 import { expect } from 'expect'
-import { restore } from 'sinon'
 import { FixedThreadPool } from '../../../lib/index.js'
 import { WeightedRoundRobinWorkerChoiceStrategy } from '../../../lib/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.js'
 import { generateRandomInteger } from '../../test-utils.js'
@@ -10,11 +9,10 @@ describe('Weighted round robin strategy worker choice strategy test suite', () =
   let pool
 
   before(() => {
-    pool = new FixedThreadPool(max, './tests/worker-files/thread/testWorker.js')
-  })
-
-  afterEach(() => {
-    restore()
+    pool = new FixedThreadPool(
+      max,
+      './tests/worker-files/thread/testWorker.mjs'
+    )
   })
 
   after(async () => {