repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: add pool option to enable median runtime
[poolifier.git]
/
tests
/
pools
/
selection-strategies
/
weighted-round-robin-worker-choice-strategy.test.js
diff --git
a/tests/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.test.js
b/tests/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.test.js
index cc3e66a49e752b349e4ae8153facbddfadca81ac..05f0bb4c3a6497c246a52621e16c9a8d62430739 100644
(file)
--- a/
tests/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.test.js
+++ b/
tests/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.test.js
@@
-34,7
+34,7
@@
describe('Weighted round robin strategy worker choice strategy test suite', () =
.returns()
const resetResult = strategy.reset()
expect(resetResult).toBe(true)
.returns()
const resetResult = strategy.reset()
expect(resetResult).toBe(true)
- expect(strategy.currentWorkerId).toBe(0)
+ expect(strategy.currentWorker
Node
Id).toBe(0)
expect(workersTaskRunTimeClearStub.calledOnce).toBe(true)
expect(initWorkersTaskRunTimeStub.calledOnce).toBe(true)
})
expect(workersTaskRunTimeClearStub.calledOnce).toBe(true)
expect(initWorkersTaskRunTimeStub.calledOnce).toBe(true)
})