fix: fix worker choice strategies behavior
[poolifier.git] / tests / pools / selection-strategies / weighted-round-robin-worker-choice-strategy.test.mjs
index 80c5ec7c65b7f808e230870060bd6270da111100..b3ea806ef68ac2b4a57bed494209618ab449346a 100644 (file)
@@ -33,7 +33,7 @@ describe('Weighted round robin strategy worker choice strategy test suite', () =
     expect(strategy.reset()).toBe(true)
     expect(strategy.nextWorkerNodeKey).toBe(0)
     expect(strategy.previousWorkerNodeKey).toBe(0)
-    expect(strategy.workerNodeVirtualTaskRunTime).toBe(0)
+    expect(strategy.workerNodeVirtualTaskExecutionTime).toBe(0)
   })
 
   it('Verify that IWRR reset() resets internals', () => {
@@ -53,6 +53,6 @@ describe('Weighted round robin strategy worker choice strategy test suite', () =
     expect(strategy.previousWorkerNodeKey).toBe(0)
     expect(strategy.roundId).toBe(0)
     expect(strategy.workerNodeId).toBe(0)
-    expect(strategy.workerNodeVirtualTaskRunTime).toBe(0)
+    expect(strategy.workerNodeVirtualTaskExecutionTime).toBe(0)
   })
 })