fix: untangle tasks queuing condition from pool busyness
[poolifier.git] / tests / pools / cluster / dynamic.test.js
index 753f59af309dfd1e83053f0e1496682f118bb7dd..a6d0b5942e00585e82e2b67e5c6cc87e027ac365 100644 (file)
@@ -77,7 +77,7 @@ describe('Dynamic cluster pool test suite', () => {
       './tests/worker-files/cluster/testWorker.js'
     )
     const result = await pool1.execute()
-    expect(result).toBe(false)
+    expect(result).toStrictEqual({ ok: 1 })
     // We need to clean up the resources after our test
     await pool1.destroy()
   })
@@ -103,7 +103,7 @@ describe('Dynamic cluster 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()