repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update dependencies
[poolifier.git]
/
tests
/
pools
/
cluster
/
fixed.test.js
diff --git
a/tests/pools/cluster/fixed.test.js
b/tests/pools/cluster/fixed.test.js
index 08476e093d4b7051040ab84879152a869b254749..63399c6e4629ba4326080153cf5448ae3f2d7f40 100644
(file)
--- a/
tests/pools/cluster/fixed.test.js
+++ b/
tests/pools/cluster/fixed.test.js
@@
-42,6
+42,15
@@
const asyncPool = new FixedClusterPool(
)
describe('Fixed cluster pool test suite ', () => {
)
describe('Fixed cluster pool test suite ', () => {
+ after('Destroy all pools', async () => {
+ // We need to clean up the resources after our test
+ await echoPool.destroy()
+ await asyncPool.destroy()
+ await errorPool.destroy()
+ await asyncErrorPool.destroy()
+ await emptyPool.destroy()
+ })
+
it('Choose worker round robin test', async () => {
const results = new Set()
for (let i = 0; i < numberOfWorkers; i++) {
it('Choose worker round robin test', async () => {
const results = new Set()
for (let i = 0; i < numberOfWorkers; i++) {
@@
-129,5
+138,7
@@
describe('Fixed cluster pool test suite ', () => {
)
const res = await pool1.execute({ test: 'test' })
expect(res).toBeFalsy()
)
const res = await pool1.execute({ test: 'test' })
expect(res).toBeFalsy()
+ // We need to clean up the resources after our test
+ await pool1.destroy()
})
})
})
})