repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test: add missing pool destroy() calls
[poolifier.git]
/
tests
/
pools
/
cluster
/
dynamic.test.js
diff --git
a/tests/pools/cluster/dynamic.test.js
b/tests/pools/cluster/dynamic.test.js
index 166b546db5bc147272672dff20cfc9d9600bbb8d..44d543ec5c83c032241a988555f7bccdabbc8812 100644
(file)
--- a/
tests/pools/cluster/dynamic.test.js
+++ b/
tests/pools/cluster/dynamic.test.js
@@
-72,15
+72,15
@@
describe('Dynamic cluster pool test suite', () => {
})
it('Should work even without opts in input', async () => {
})
it('Should work even without opts in input', async () => {
- const pool
1
= new DynamicClusterPool(
+ const pool = new DynamicClusterPool(
min,
max,
'./tests/worker-files/cluster/testWorker.js'
)
min,
max,
'./tests/worker-files/cluster/testWorker.js'
)
- const result = await pool
1
.execute()
+ const result = await pool.execute()
expect(result).toStrictEqual({ ok: 1 })
// We need to clean up the resources after our test
expect(result).toStrictEqual({ ok: 1 })
// We need to clean up the resources after our test
- await pool
1
.destroy()
+ await pool.destroy()
})
it('Verify scale processes up and down is working when long executing task is used:hard', async () => {
})
it('Verify scale processes up and down is working when long executing task is used:hard', async () => {