From: Jérôme Benoit Date: Wed, 20 Dec 2023 14:14:08 +0000 (+0100) Subject: test: less stricter expectation X-Git-Tag: v3.1.7~1^2~6 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=bcc9e518ccacb739018c92de22011fa4e8d47ece;hp=35e8f29cac8e1c1fecb8a3404107602d2d482f19;p=poolifier.git test: less stricter 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 bbfeb30d..33fad179 100644 --- a/tests/pools/selection-strategies/selection-strategies.test.mjs +++ b/tests/pools/selection-strategies/selection-strategies.test.mjs @@ -1789,7 +1789,7 @@ describe('Selection strategies test suite', () => { pool.workerChoiceStrategyContext.workerChoiceStrategies.get( pool.workerChoiceStrategyContext.workerChoiceStrategy ).previousWorkerNodeKey - ).toBe(0) + ).toEqual(expect.any(Number)) expect( pool.workerChoiceStrategyContext.workerChoiceStrategies.get( pool.workerChoiceStrategyContext.workerChoiceStrategy