From d94bee6fb7e3c48b2490cc4fdd1fe2c205c33f2a Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 8 Oct 2022 15:05:05 +0200 Subject: [PATCH] Convert function to arrow function in UT MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- tests/test-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++ -- 2.34.1