From: Jérôme Benoit Date: Tue, 11 Jul 2023 11:25:39 +0000 (+0200) Subject: test: code cleanups X-Git-Tag: v2.6.15~8 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=66293e7de47622336a108da139f5bbbd7d175d2b;p=poolifier.git test: code cleanups Signed-off-by: Jérôme Benoit --- diff --git a/tests/pools/cluster/fixed.test.js b/tests/pools/cluster/fixed.test.js index 1a0e1e3d..f71529a9 100644 --- a/tests/pools/cluster/fixed.test.js +++ b/tests/pools/cluster/fixed.test.js @@ -86,9 +86,7 @@ describe('Fixed cluster pool test suite', () => { } ) let poolReady = 0 - pool1.emitter.on(PoolEvents.ready, () => { - ++poolReady - }) + pool1.emitter.on(PoolEvents.ready, () => ++poolReady) await waitPoolEvents(pool1, PoolEvents.ready, 1) expect(poolReady).toBe(1) }) diff --git a/tests/pools/thread/fixed.test.js b/tests/pools/thread/fixed.test.js index 02c851f9..99b86778 100644 --- a/tests/pools/thread/fixed.test.js +++ b/tests/pools/thread/fixed.test.js @@ -86,9 +86,7 @@ describe('Fixed thread pool test suite', () => { } ) let poolReady = 0 - pool1.emitter.on(PoolEvents.ready, () => { - ++poolReady - }) + pool1.emitter.on(PoolEvents.ready, () => ++poolReady) await waitPoolEvents(pool1, 'ready', 1) expect(poolReady).toBe(1) })