repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chore: v3.0.6
[poolifier.git]
/
tests
/
pools
/
cluster
/
fixed.test.mjs
diff --git
a/tests/pools/cluster/fixed.test.mjs
b/tests/pools/cluster/fixed.test.mjs
index 7d829f32858e548e30d0325266adc0bdf637b13e..c9b528b9c2e5b57fedec5cdfc81f71e6f50b7ece 100644
(file)
--- a/
tests/pools/cluster/fixed.test.mjs
+++ b/
tests/pools/cluster/fixed.test.mjs
@@
-262,6
+262,7
@@
describe('Fixed cluster pool test suite', () => {
await pool.destroy()
const numberOfExitEvents = await exitPromise
expect(pool.started).toBe(false)
await pool.destroy()
const numberOfExitEvents = await exitPromise
expect(pool.started).toBe(false)
+ expect(pool.readyEventEmitted).toBe(false)
expect(pool.workerNodes.length).toBe(0)
expect(numberOfExitEvents).toBe(numberOfWorkers)
expect(poolDestroy).toBe(1)
expect(pool.workerNodes.length).toBe(0)
expect(numberOfExitEvents).toBe(numberOfWorkers)
expect(poolDestroy).toBe(1)
@@
-318,10
+319,10
@@
describe('Fixed cluster pool test suite', () => {
await pool.destroy()
})
await pool.destroy()
})
- it('Verify that a pool with zero worker fails',
async
() => {
+ it('Verify that a pool with zero worker fails', () => {
expect(
() =>
new FixedClusterPool(0, './tests/worker-files/cluster/testWorker.js')
expect(
() =>
new FixedClusterPool(0, './tests/worker-files/cluster/testWorker.js')
- ).toThrow
Error
('Cannot instantiate a fixed pool with zero worker')
+ ).toThrow('Cannot instantiate a fixed pool with zero worker')
})
})
})
})