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

index bbfeb30df3b651c8981df0975566f04d25c0fef2..33fad179148ded73e33a9b683a97d734e1111751 100644 (file)
@@ -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