repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build(deps): bump poolifier in /examples/typescript/smtp-client-pool
[poolifier.git]
/
tests
/
pools
/
abstract-pool.test.mjs
diff --git
a/tests/pools/abstract-pool.test.mjs
b/tests/pools/abstract-pool.test.mjs
index 6a65f3803d0825b29052942873e13ff5edbe7460..8cae47d6bdca9f2289a9844c655d602a670e4dd6 100644
(file)
--- a/
tests/pools/abstract-pool.test.mjs
+++ b/
tests/pools/abstract-pool.test.mjs
@@
-275,7
+275,7
@@
describe('Abstract pool test suite', () => {
concurrency: 2,
size: Math.pow(numberOfWorkers, 2),
taskStealing: true,
concurrency: 2,
size: Math.pow(numberOfWorkers, 2),
taskStealing: true,
- tasksStealingOnBackPressure:
tru
e,
+ tasksStealingOnBackPressure:
fals
e,
tasksFinishedTimeout: 2000
},
workerChoiceStrategy: WorkerChoiceStrategies.LEAST_USED,
tasksFinishedTimeout: 2000
},
workerChoiceStrategy: WorkerChoiceStrategies.LEAST_USED,
@@
-591,7
+591,7
@@
describe('Abstract pool test suite', () => {
concurrency: 1,
size: Math.pow(numberOfWorkers, 2),
taskStealing: true,
concurrency: 1,
size: Math.pow(numberOfWorkers, 2),
taskStealing: true,
- tasksStealingOnBackPressure:
tru
e,
+ tasksStealingOnBackPressure:
fals
e,
tasksFinishedTimeout: 2000
})
pool.enableTasksQueue(true, { concurrency: 2 })
tasksFinishedTimeout: 2000
})
pool.enableTasksQueue(true, { concurrency: 2 })
@@
-600,7
+600,7
@@
describe('Abstract pool test suite', () => {
concurrency: 2,
size: Math.pow(numberOfWorkers, 2),
taskStealing: true,
concurrency: 2,
size: Math.pow(numberOfWorkers, 2),
taskStealing: true,
- tasksStealingOnBackPressure:
tru
e,
+ tasksStealingOnBackPressure:
fals
e,
tasksFinishedTimeout: 2000
})
pool.enableTasksQueue(false)
tasksFinishedTimeout: 2000
})
pool.enableTasksQueue(false)
@@
-619,7
+619,7
@@
describe('Abstract pool test suite', () => {
concurrency: 1,
size: Math.pow(numberOfWorkers, 2),
taskStealing: true,
concurrency: 1,
size: Math.pow(numberOfWorkers, 2),
taskStealing: true,
- tasksStealingOnBackPressure:
tru
e,
+ tasksStealingOnBackPressure:
fals
e,
tasksFinishedTimeout: 2000
})
for (const workerNode of pool.workerNodes) {
tasksFinishedTimeout: 2000
})
for (const workerNode of pool.workerNodes) {
@@
-819,7
+819,8
@@
describe('Abstract pool test suite', () => {
type: WorkerTypes.cluster,
dynamic: false,
ready: true,
type: WorkerTypes.cluster,
dynamic: false,
ready: true,
- stealing: false
+ stealing: false,
+ backPressure: false
})
}
await pool.destroy()
})
}
await pool.destroy()
@@
-835,7
+836,8
@@
describe('Abstract pool test suite', () => {
type: WorkerTypes.thread,
dynamic: false,
ready: true,
type: WorkerTypes.thread,
dynamic: false,
ready: true,
- stealing: false
+ stealing: false,
+ backPressure: false
})
}
await pool.destroy()
})
}
await pool.destroy()