'./tests/worker-files/thread/testWorker.js'
)
const res = await pool1.execute()
- expect(res).toBe(false)
+ expect(res).toStrictEqual({ ok: 1 })
// We need to clean up the resources after our test
await pool1.destroy()
})
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()