repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
feat: make IWRR strategy worker readiness aware
[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 1d0f7b8c29fc2992f7415fc71cb8ad53e58bc1a9..c93155b0bfbb3e8e8a29a579928e38b74363146e 100644
(file)
--- a/
tests/pools/cluster/fixed.test.js
+++ b/
tests/pools/cluster/fixed.test.js
@@
-87,7
+87,9
@@
describe('Fixed cluster pool test suite', () => {
)
let poolReady = 0
pool1.emitter.on(PoolEvents.ready, () => ++poolReady)
- await waitPoolEvents(pool1, PoolEvents.ready, 1)
+ if (!pool1.info.ready) {
+ await waitPoolEvents(pool1, PoolEvents.ready, 1)
+ }
expect(poolReady).toBe(1)
})