repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into elu-strategy
[poolifier.git]
/
tests
/
pools
/
abstract
/
abstract-pool.test.js
diff --git
a/tests/pools/abstract/abstract-pool.test.js
b/tests/pools/abstract/abstract-pool.test.js
index ead69d06367e9d19921c4952345971ec6f51f795..45371a31325e6cea532e87edd9b0c9c0fccd78dd 100644
(file)
--- a/
tests/pools/abstract/abstract-pool.test.js
+++ b/
tests/pools/abstract/abstract-pool.test.js
@@
-193,7
+193,9
@@
describe('Abstract pool test suite', () => {
medWaitTime: false
})
}
medWaitTime: false
})
}
- expect(pool.workerChoiceStrategyContext.getTaskStatistics()).toStrictEqual({
+ expect(
+ pool.workerChoiceStrategyContext.getTaskStatisticsRequirements()
+ ).toStrictEqual({
runTime: true,
avgRunTime: true,
medRunTime: false,
runTime: true,
avgRunTime: true,
medRunTime: false,
@@
-210,7
+212,9
@@
describe('Abstract pool test suite', () => {
.workerChoiceStrategies) {
expect(workerChoiceStrategy.opts).toStrictEqual({ medRunTime: true })
}
.workerChoiceStrategies) {
expect(workerChoiceStrategy.opts).toStrictEqual({ medRunTime: true })
}
- expect(pool.workerChoiceStrategyContext.getTaskStatistics()).toStrictEqual({
+ expect(
+ pool.workerChoiceStrategyContext.getTaskStatisticsRequirements()
+ ).toStrictEqual({
runTime: true,
avgRunTime: false,
medRunTime: true,
runTime: true,
avgRunTime: false,
medRunTime: true,
@@
-227,7
+231,9
@@
describe('Abstract pool test suite', () => {
.workerChoiceStrategies) {
expect(workerChoiceStrategy.opts).toStrictEqual({ medRunTime: false })
}
.workerChoiceStrategies) {
expect(workerChoiceStrategy.opts).toStrictEqual({ medRunTime: false })
}
- expect(pool.workerChoiceStrategyContext.getTaskStatistics()).toStrictEqual({
+ expect(
+ pool.workerChoiceStrategyContext.getTaskStatisticsRequirements()
+ ).toStrictEqual({
runTime: true,
avgRunTime: true,
medRunTime: false,
runTime: true,
avgRunTime: true,
medRunTime: false,