repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
perf: use a single map to store pool workers and their related data
[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 b0e39c308ae6b3d5b0c45396fde375f1c9605143..ae899625dd9341dc4f9cfad3f40fab109587eb27 100644
(file)
--- a/
tests/pools/cluster/fixed.test.js
+++ b/
tests/pools/cluster/fixed.test.js
@@
-67,7
+67,7
@@
describe('Fixed cluster pool test suite', () => {
it('Verify that busy event is emitted', async () => {
let poolBusy = 0
- pool.emitter.on('busy', () =>
poolBusy++
)
+ pool.emitter.on('busy', () =>
++poolBusy
)
for (let i = 0; i < numberOfWorkers * 2; i++) {
pool.execute()
}