repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build: switch default to ESM
[poolifier.git]
/
tests
/
pools
/
selection-strategies
/
selection-strategies.test.mjs
diff --git
a/tests/pools/selection-strategies/selection-strategies.test.mjs
b/tests/pools/selection-strategies/selection-strategies.test.mjs
index e17191557a96edb785748c1fb744bf55f81a15a3..39a2ccc3f7ce0cd84ad995165a85a9227341c688 100644
(file)
--- a/
tests/pools/selection-strategies/selection-strategies.test.mjs
+++ b/
tests/pools/selection-strategies/selection-strategies.test.mjs
@@
-5,8
+5,8
@@
import {
FixedClusterPool,
FixedThreadPool,
WorkerChoiceStrategies
FixedClusterPool,
FixedThreadPool,
WorkerChoiceStrategies
-} from '../../../lib/index.js'
-import { CircularArray } from '../../../lib/circular-array.js'
+} from '../../../lib/index.
c
js'
+import { CircularArray } from '../../../lib/circular-array.
c
js'
describe('Selection strategies test suite', () => {
const min = 0
describe('Selection strategies test suite', () => {
const min = 0
@@
-85,7
+85,7
@@
describe('Selection strategies test suite', () => {
const pool = new DynamicClusterPool(
min,
max,
const pool = new DynamicClusterPool(
min,
max,
- './tests/worker-files/cluster/testWorker.js'
+ './tests/worker-files/cluster/testWorker.
c
js'
)
pool.setWorkerChoiceStrategy(workerChoiceStrategy)
expect(pool.opts.workerChoiceStrategy).toBe(workerChoiceStrategy)
)
pool.setWorkerChoiceStrategy(workerChoiceStrategy)
expect(pool.opts.workerChoiceStrategy).toBe(workerChoiceStrategy)
@@
-389,7
+389,7
@@
describe('Selection strategies test suite', () => {
const workerChoiceStrategy = WorkerChoiceStrategies.ROUND_ROBIN
let pool = new FixedClusterPool(
max,
const workerChoiceStrategy = WorkerChoiceStrategies.ROUND_ROBIN
let pool = new FixedClusterPool(
max,
- './tests/worker-files/cluster/testWorker.js',
+ './tests/worker-files/cluster/testWorker.
c
js',
{ workerChoiceStrategy }
)
let results = new Set()
{ workerChoiceStrategy }
)
let results = new Set()