-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
test: update test/parallel/test-http-pipe-fs.js to use countdown #17346
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
test/parallel/test-http-pipe-fs.js
Outdated
@@ -39,7 +43,7 @@ const server = http.createServer(common.mustCall(function(req, res) { | |||
}, 2)).listen(0, function() { | |||
http.globalAgent.maxSockets = 1; | |||
|
|||
for (let i = 0; i < 2; ++i) { | |||
for (let i = 0; i < NUMBER_OF_STREAMS; ++i) { | |||
(function(i) { |
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.
I think this entire closure might be unnecessary now, because the countdown removes the only use of i
that was not for debugging?
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.
@addaleax I just push a new commit that removes the unnecessary IIFE.
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.
Thanks, looks good!
Landed in fa07249 Thanks for the PR! 🎉 ✨ |
PR-URL: #17346 Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Anna Henningsen <anna@addaleax.net>
PR-URL: #17346 Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Anna Henningsen <anna@addaleax.net>
PR-URL: #17346 Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Anna Henningsen <anna@addaleax.net>
PR-URL: #17346 Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Anna Henningsen <anna@addaleax.net>
PR-URL: #17346 Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Anna Henningsen <anna@addaleax.net>
PR-URL: #17346 Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Anna Henningsen <anna@addaleax.net>
-Refactor the test case
test/parallel/test-http-pipe-fs.js
to use countdown, as issues #17169Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
test