From 66293e7de47622336a108da139f5bbbd7d175d2b Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 11 Jul 2023 13:25:39 +0200 Subject: [PATCH] test: code cleanups MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- tests/pools/cluster/fixed.test.js | 4 +--- tests/pools/thread/fixed.test.js | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) 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) }) -- 2.34.1