test: less strict expectation for CI
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 20 Dec 2023 13:21:00 +0000 (14:21 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 20 Dec 2023 13:21:00 +0000 (14:21 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
tests/pools/selection-strategies/selection-strategies.test.mjs

index 9ee22fdde9b04ac16bc3a858928cac73ba47867b..5aa392877d77fb48d3c12738cd983916ff5494c1 100644 (file)
@@ -1636,7 +1636,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