refactor: prepare worker choice strategies code for worker readiness
[poolifier.git] / tests / pools / thread / dynamic.test.js
index 56847302653d1ee6df62a1a9bc44499ce8256b9b..4f3dfb6d92f0a761a8cfbc766a91fde55b1c29b8 100644 (file)
@@ -103,7 +103,7 @@ describe('Dynamic thread pool test suite', () => {
     expect(
       longRunningPool.workerChoiceStrategyContext.workerChoiceStrategies.get(
         longRunningPool.workerChoiceStrategyContext.workerChoiceStrategy
-      ).nextWorkerNodeId
+      ).nextWorkerNodeKey
     ).toBeLessThan(longRunningPool.workerNodes.length)
     // We need to clean up the resources after our test
     await longRunningPool.destroy()