-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: updated test case in test-http-timeout
to use countdown
#17341
Conversation
test-http-timeout
to use countdowntest-http-timeout
to use countdown
test-http-timeout
to use countdowntest-http-timeout
to use countdown
@apapirovski : Can you please run the CI for this too ? |
@mithunsasidharan Looks like there's a CI and it's green other than known failures. |
test/parallel/test-http-timeout.js
Outdated
|
||
const server = http.createServer(function(req, res) { | ||
res.writeHead(200, { 'Content-Type': 'text/plain' }); | ||
res.end('OK'); | ||
}); | ||
|
||
const agent = new http.Agent({ maxSockets: 1 }); | ||
const countdown = new Countdown(11, () => server.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.
Could you store 11 in a const
? Thanks!
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.
@apapirovski : Update the PR to address the review comment and also shortened the commit message. Kindly review now.Thanks!
LGTM but one general nit that applies to all the PRs: the colon after the subsystem shouldn't have a space before it, so |
test-http-timeout
to use countdowntest-http-timeout
to use countdown
@apapirovski : Thanks much for the support ! |
Landing... |
Thank you for your contribution, landed in 996bfcc. |
PR-URL: #17341 Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
PR-URL: #17341 Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
PR-URL: #17341 Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
PR-URL: #17341 Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
PR-URL: #17341 Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Test : Updated test case in
test-http-timeout
to use countdown as per issue #17169Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
test