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
/
thread
/
fixed.test.js
diff --git
a/tests/pools/thread/fixed.test.js
b/tests/pools/thread/fixed.test.js
index de81cb68c304e8ef703ff4bf819c4e5b20829237..636121fd4812eb8705bb2aed57119e8b84f8bcfb 100644
(file)
--- a/
tests/pools/thread/fixed.test.js
+++ b/
tests/pools/thread/fixed.test.js
@@
-87,7
+87,9
@@
describe('Fixed thread 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)
})