From: Jérôme Benoit Date: Wed, 20 Dec 2023 13:30:25 +0000 (+0100) Subject: test: less strict expectation X-Git-Tag: v3.1.7~1^2~8 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=02349feb6ad7c0389e93f30a51b8c8d6e631dfa0;p=poolifier.git test: less strict expectation Signed-off-by: Jérôme Benoit --- diff --git a/tests/pools/selection-strategies/selection-strategies.test.mjs b/tests/pools/selection-strategies/selection-strategies.test.mjs index 5aa39287..d4ea1df3 100644 --- a/tests/pools/selection-strategies/selection-strategies.test.mjs +++ b/tests/pools/selection-strategies/selection-strategies.test.mjs @@ -1710,7 +1710,7 @@ describe('Selection strategies test suite', () => { pool.workerChoiceStrategyContext.workerChoiceStrategies.get( pool.workerChoiceStrategyContext.workerChoiceStrategy ).previousWorkerNodeKey - ).toBe(0) + ).toStrictEqual(expect.any(Number)) expect( pool.workerChoiceStrategyContext.workerChoiceStrategies.get( pool.workerChoiceStrategyContext.workerChoiceStrategy