test: code cleanups
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 11 Jul 2023 11:25:39 +0000 (13:25 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 11 Jul 2023 11:25:39 +0000 (13:25 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
tests/pools/cluster/fixed.test.js
tests/pools/thread/fixed.test.js

index 1a0e1e3d6812a12c32b20dfd2022a671e0c84b64..f71529a911949f285d0c54ebd8be5b27d67d0e3d 100644 (file)
@@ -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)
   })
index 02c851f9f82b6b4fa8c66490495857ce5b139b1a..99b867786b62d95454dc660201f14c55254094d5 100644 (file)
@@ -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)
   })