test: align randomInt interval
[poolifier.git] / tests / pools / selection-strategies / weighted-round-robin-worker-choice-strategy.test.mjs
index 063c7a46dfb259d26b5fb1705bfaadab74e8a09d..5beffafac1b2d1ba5bdc9bcc845475abd4754698 100644 (file)
@@ -22,9 +22,9 @@ describe('Weighted round robin strategy worker choice strategy test suite', () =
 
   it('Verify that WRR reset() resets internals', () => {
     const strategy = new WeightedRoundRobinWorkerChoiceStrategy(pool)
-    strategy.nextWorkerNodeKey = randomInt(1, 281474976710655)
-    strategy.previousWorkerNodeKey = randomInt(1, 281474976710655)
-    strategy.workerNodeVirtualTaskRunTime = randomInt(1, 281474976710655)
+    strategy.nextWorkerNodeKey = randomInt(1, 281474976710656)
+    strategy.previousWorkerNodeKey = randomInt(1, 281474976710656)
+    strategy.workerNodeVirtualTaskRunTime = randomInt(1, 281474976710656)
     expect(strategy.nextWorkerNodeKey).toBeGreaterThan(0)
     expect(strategy.previousWorkerNodeKey).toBeGreaterThan(0)
     expect(strategy.workerNodeVirtualTaskRunTime).toBeGreaterThan(0)