repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix tests
[poolifier.git]
/
tests
/
pools
/
selection-strategies
/
worker-choice-strategy-context.test.js
diff --git
a/tests/pools/selection-strategies/worker-choice-strategy-context.test.js
b/tests/pools/selection-strategies/worker-choice-strategy-context.test.js
index c30bda737d35637f2b88020f0ed8441a0fb5c020..46ac017c223687891b0eccd438892ea1a22f6c51 100644
(file)
--- a/
tests/pools/selection-strategies/worker-choice-strategy-context.test.js
+++ b/
tests/pools/selection-strategies/worker-choice-strategy-context.test.js
@@
-61,11
+61,11
@@
describe('Worker choice strategy context test suite', () => {
}
)
workerChoiceStrategyContext.workerChoiceStrategy = WorkerChoiceStrategyStub
}
)
workerChoiceStrategyContext.workerChoiceStrategy = WorkerChoiceStrategyStub
- const
w
orker = workerChoiceStrategyContext.execute()
+ const
chosenW
orker = workerChoiceStrategyContext.execute()
expect(
expect(
- workerChoiceStrategyContext.
workerChoiceStrategy
.choose.calledOnce
+ workerChoiceStrategyContext.
getWorkerChoiceStrategy()
.choose.calledOnce
).toBe(true)
).toBe(true)
- expect(
w
orker).toBe('worker')
+ expect(
chosenW
orker).toBe('worker')
})
it('Verify that execute() return the worker chosen by the strategy with dynamic pool', () => {
})
it('Verify that execute() return the worker chosen by the strategy with dynamic pool', () => {
@@
-79,11
+79,11
@@
describe('Worker choice strategy context test suite', () => {
}
)
workerChoiceStrategyContext.workerChoiceStrategy = WorkerChoiceStrategyStub
}
)
workerChoiceStrategyContext.workerChoiceStrategy = WorkerChoiceStrategyStub
- const
w
orker = workerChoiceStrategyContext.execute()
+ const
chosenW
orker = workerChoiceStrategyContext.execute()
expect(
expect(
- workerChoiceStrategyContext.
workerChoiceStrategy
.choose.calledOnce
+ workerChoiceStrategyContext.
getWorkerChoiceStrategy()
.choose.calledOnce
).toBe(true)
).toBe(true)
- expect(
w
orker).toBe('worker')
+ expect(
chosenW
orker).toBe('worker')
})
it('Verify that setWorkerChoiceStrategy() works with ROUND_ROBIN and fixed pool', () => {
})
it('Verify that setWorkerChoiceStrategy() works with ROUND_ROBIN and fixed pool', () => {