From: Jérôme Benoit Date: Wed, 31 May 2023 18:32:08 +0000 (+0200) Subject: test: import RR worker choice strategy expectation X-Git-Tag: v2.5.0~3^2~3 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=9458090a8699203af83383930938b2a6ac53e29d;p=poolifier.git test: import RR worker choice strategy expectation Signed-off-by: Jérôme Benoit --- diff --git a/tests/pools/selection-strategies/selection-strategies.test.js b/tests/pools/selection-strategies/selection-strategies.test.js index b7e6237d..eb30d0e1 100644 --- a/tests/pools/selection-strategies/selection-strategies.test.js +++ b/tests/pools/selection-strategies/selection-strategies.test.js @@ -180,6 +180,11 @@ describe('Selection strategies test suite', () => { error: 0 }) } + expect( + pool.workerChoiceStrategyContext.workerChoiceStrategies.get( + WorkerChoiceStrategies.ROUND_ROBIN + ).nextWorkerNodeId + ).toBe(0) // We need to clean up the resources after our test await pool.destroy() }) @@ -213,6 +218,11 @@ describe('Selection strategies test suite', () => { error: 0 }) } + expect( + pool.workerChoiceStrategyContext.workerChoiceStrategies.get( + WorkerChoiceStrategies.ROUND_ROBIN + ).nextWorkerNodeId + ).toBe(0) // We need to clean up the resources after our test await pool.destroy() })