From: Jérôme Benoit Date: Sat, 8 Oct 2022 13:05:05 +0000 (+0200) Subject: Convert function to arrow function in UT X-Git-Tag: v2.2.1~10 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=d94bee6fb7e3c48b2490cc4fdd1fe2c205c33f2a;p=poolifier.git Convert function to arrow function in UT Signed-off-by: Jérôme Benoit --- diff --git a/tests/test-utils.js b/tests/test-utils.js index ab57685e..e63e14f2 100644 --- a/tests/test-utils.js +++ b/tests/test-utils.js @@ -1,7 +1,7 @@ class TestUtils { static async waitExits (pool, numberOfExitEventsToWait) { let exitEvents = 0 - return new Promise(function (resolve, reject) { + return new Promise(resolve => { pool.workers.forEach(w => { w.on('exit', () => { exitEvents++