repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Convert function to arrow function in UT
[poolifier.git]
/
tests
/
test-utils.js
diff --git
a/tests/test-utils.js
b/tests/test-utils.js
index ab57685eb58fc000099fe4beec1287c01fcff14a..e63e14f2987748d61030ad964588df864958f3a6 100644
(file)
--- 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++