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
/
thread
/
fixed.test.js
diff --git
a/tests/pools/thread/fixed.test.js
b/tests/pools/thread/fixed.test.js
index 116a17da8640bc97a01715970137817dca078077..fd9ce5dfe799a7f8e707bcdb843f875dfe0fbd5a 100644
(file)
--- a/
tests/pools/thread/fixed.test.js
+++ b/
tests/pools/thread/fixed.test.js
@@
-67,7
+67,7
@@
describe('Fixed thread 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 < numberOfThreads * 2; i++) {
pool.execute()
}