-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
update : test-http-upgrade-client
to use countdown
#17339
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
@@ -60,7 +61,8 @@ srv.listen(0, '127.0.0.1', common.mustCall(function() { | |||
['Origin', 'http://www.websocket.org'] | |||
] | |||
]; | |||
let left = headers.length; | |||
const countdown = new Countdown(10, () => srv.close()); |
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.
Why 10 ? It should be headers.length
.
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.
@daxlab : My bad.. thanks much for the correction. I've updated the PR. Kindly review!
test-http-upgrade-client
to use countdowntest-http-upgrade-client
to use countdown
@apapirovski : Can you please run the CI for this too ? |
Same here, CI is green too. Should be ready to land when someone gets a moment. |
Landing... |
Thank you for your contribution, landed in eb19c6b. |
PR-URL: #17339 Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
PR-URL: #17339 Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
PR-URL: #17339 Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
PR-URL: #17339 Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
PR-URL: #17339 Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
PR-URL: #17339 Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Refactored the test case
test-http-upgrade-client
to use countdown, as per issue #17169Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
test