Tests: improve strategies initialization coverage
[poolifier.git] / tests / pools / selection-strategies / selection-strategies-utils.test.js
index ac1836e7d341ca525d15bc8ba95d50d54e73f298..945f6ebad001426dae7d11b5635ae52c9a61c6b1 100644 (file)
@@ -18,7 +18,7 @@ const {
 } = require('../../../lib/pools/selection-strategies/fair-share-worker-choice-strategy')
 const {
   WeightedRoundRobinWorkerChoiceStrategy
-} = require('../../../lib/pools/selection-strategies/weighted-round-robin-choice-strategy')
+} = require('../../../lib/pools/selection-strategies/weighted-round-robin-worker-choice-strategy')
 
 describe('Selection strategies utils test suite', () => {
   const max = 3
@@ -32,8 +32,8 @@ describe('Selection strategies utils test suite', () => {
   //   sinon.restore()
   // })
 
-  after(() => {
-    pool.destroy()
+  after(async () => {
+    await pool.destroy()
   })
 
   it('Verify that getWorkerChoiceStrategy() default return ROUND_ROBIN strategy', () => {