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
/
thread
/
fixed.test.mjs
diff --git
a/tests/pools/thread/fixed.test.mjs
b/tests/pools/thread/fixed.test.mjs
index 3e10a92d0be8156f4dfd22289a0d3197a532fb1b..3da05735588953cf6c0882a30aa86a231dd8b841 100644
(file)
--- a/
tests/pools/thread/fixed.test.mjs
+++ b/
tests/pools/thread/fixed.test.mjs
@@
-68,7
+68,7
@@
describe('Fixed thread pool test suite', () => {
let result = await pool.execute({
function: TaskFunctions.fibonacci
})
let result = await pool.execute({
function: TaskFunctions.fibonacci
})
- expect(result).toBe(
75025
)
+ expect(result).toBe(
354224848179262000000
)
result = await pool.execute({
function: TaskFunctions.factorial
})
result = await pool.execute({
function: TaskFunctions.factorial
})
@@
-348,7
+348,8
@@
describe('Fixed thread pool test suite', () => {
})
await expect(pool.destroyWorkerNode(workerNodeKey)).resolves.toBeUndefined()
expect(exitEvent).toBe(1)
})
await expect(pool.destroyWorkerNode(workerNodeKey)).resolves.toBeUndefined()
expect(exitEvent).toBe(1)
- expect(pool.workerNodes.length).toBe(numberOfThreads - 1)
+ // Simulates an illegitimate worker node destroy and the minimum number of worker nodes is guaranteed
+ expect(pool.workerNodes.length).toBe(numberOfThreads)
await pool.destroy()
})
await pool.destroy()
})