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 48f19e4d0f3fae3e586242517a172da199675b5b..3da05735588953cf6c0882a30aa86a231dd8b841 100644
(file)
--- a/
tests/pools/thread/fixed.test.mjs
+++ b/
tests/pools/thread/fixed.test.mjs
@@
-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()
})