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

index 5aa392877d77fb48d3c12738cd983916ff5494c1..d4ea1df3b7978c76455427b31e72681ab93d855e 100644 (file)
@@ -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