X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fpools%2Fselection-strategies%2Fselection-strategies-utils.test.js;h=945f6ebad001426dae7d11b5635ae52c9a61c6b1;hb=d2f7b7a2e327fd754babbe16dd7ef8ff72a4a7cf;hp=ac1836e7d341ca525d15bc8ba95d50d54e73f298;hpb=c15273f20d0ee8b7b34321f07d7f14e60d1ed895;p=poolifier.git diff --git a/tests/pools/selection-strategies/selection-strategies-utils.test.js b/tests/pools/selection-strategies/selection-strategies-utils.test.js index ac1836e7..945f6eba 100644 --- a/tests/pools/selection-strategies/selection-strategies-utils.test.js +++ b/tests/pools/selection-strategies/selection-strategies-utils.test.js @@ -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', () => {