Convert function to arrow function in UT
[poolifier.git] / tests / test-utils.js
index ab57685eb58fc000099fe4beec1287c01fcff14a..e63e14f2987748d61030ad964588df864958f3a6 100644 (file)
@@ -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++