fix: ensure worker choice is retried at least the pool max size
[poolifier.git] / tests / pools / selection-strategies / weighted-round-robin-worker-choice-strategy.test.mjs
index a8c4bdd5eaabf9f0845e82d00d9a1bd9c2c2caa1..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'
@@ -16,10 +15,6 @@ describe('Weighted round robin strategy worker choice strategy test suite', () =
     )
   })
 
-  afterEach(() => {
-    restore()
-  })
-
   after(async () => {
     await pool.destroy()
   })