test: less stricter expectation
[poolifier.git] / 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