-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
test: Update test-http-parser-free to use countdown timer #17322
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
db88f70
to
ad7608f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One comment, otherwise LGTM
if (++responses === N) { | ||
server.close(); | ||
} | ||
countdown.dec(); | ||
res.resume(); | ||
}); | ||
})(i); | ||
} | ||
}); | ||
|
||
process.on('exit', function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need this check? Doesn't server.close()
/ end of execution from the Countdown
mean we've already hit zero remaining?
cc @jasnell
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, the process.on('exit')
can be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with the process.on('exit')
handler removed.
Done. |
Landed in 6d1f8a3 |
Fixes: #17169
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)