repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build(deps-dev): apply updates
[poolifier.git]
/
tests
/
pools
/
selection-strategies
/
selection-strategies-utils.test.mjs
diff --git
a/tests/pools/selection-strategies/selection-strategies-utils.test.mjs
b/tests/pools/selection-strategies/selection-strategies-utils.test.mjs
index dc6fc71fefca8b32a636d02d7a2dd757c4e838ca..9b57e78945baac77c4c522f54147560552703579 100644
(file)
--- a/
tests/pools/selection-strategies/selection-strategies-utils.test.mjs
+++ b/
tests/pools/selection-strategies/selection-strategies-utils.test.mjs
@@
-3,7
+3,7
@@
import { expect } from 'expect'
import { FixedClusterPool, FixedThreadPool } from '../../../lib/index.cjs'
import {
buildWorkerChoiceStrategyOptions,
import { FixedClusterPool, FixedThreadPool } from '../../../lib/index.cjs'
import {
buildWorkerChoiceStrategyOptions,
- getWorkerChoiceStrategiesRetries
+ getWorkerChoiceStrategiesRetries
,
} from '../../../lib/pools/selection-strategies/selection-strategies-utils.cjs'
describe('Selection strategies utils test suite', () => {
} from '../../../lib/pools/selection-strategies/selection-strategies-utils.cjs'
describe('Selection strategies utils test suite', () => {
@@
-19,8
+19,8
@@
describe('Selection strategies utils test suite', () => {
elu: { median: false },
weights: expect.objectContaining({
0: expect.any(Number),
elu: { median: false },
weights: expect.objectContaining({
0: expect.any(Number),
- [pool.info.maxSize - 1]: expect.any(Number)
- })
+ [pool.info.maxSize - 1]: expect.any(Number)
,
+ })
,
})
const workerChoiceStrategyOptions = {
runTime: { median: true },
})
const workerChoiceStrategyOptions = {
runTime: { median: true },
@@
-28,8
+28,8
@@
describe('Selection strategies utils test suite', () => {
elu: { median: true },
weights: {
0: 100,
elu: { median: true },
weights: {
0: 100,
- 1: 100
- }
+ 1: 100
,
+ }
,
}
expect(
buildWorkerChoiceStrategyOptions(pool, workerChoiceStrategyOptions)
}
expect(
buildWorkerChoiceStrategyOptions(pool, workerChoiceStrategyOptions)
@@
-50,8
+50,8
@@
describe('Selection strategies utils test suite', () => {
elu: { median: true },
weights: {
0: 100,
elu: { median: true },
weights: {
0: 100,
- 1: 100
- }
+ 1: 100
,
+ }
,
}
expect(
getWorkerChoiceStrategiesRetries(pool, workerChoiceStrategyOptions)
}
expect(
getWorkerChoiceStrategiesRetries(pool, workerChoiceStrategyOptions)