Skip to content
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

Closed
wants to merge 1 commit into from
Closed

test: updated test case in test-http-timeout to use countdown #17341

wants to merge 1 commit into from

Conversation

mithunsasidharan
Copy link
Contributor

Test : Updated test case in test-http-timeout to use countdown as per issue #17169

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

test

@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Nov 27, 2017
@mithunsasidharan mithunsasidharan changed the title Test : Updated test case in test-http-timeout to use countdown test : Updated test case in test-http-timeout to use countdown Nov 27, 2017
@mithunsasidharan mithunsasidharan changed the title test : Updated test case in test-http-timeout to use countdown test : updated test case in test-http-timeout to use countdown Nov 27, 2017
@mscdex mscdex added the http Issues or PRs related to the http subsystem. label Nov 27, 2017
@maclover7
Copy link
Contributor

@mithunsasidharan
Copy link
Contributor Author

@apapirovski : Can you please run the CI for this too ?

@apapirovski
Copy link
Member

@mithunsasidharan Looks like there's a CI and it's green other than known failures.


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());
Copy link
Member

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!

Copy link
Contributor Author

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!

@apapirovski
Copy link
Member

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: not test : but that's very minor and anyone landing this PR can adjust it.

@mithunsasidharan mithunsasidharan changed the title test : updated test case in test-http-timeout to use countdown test: updated test case in test-http-timeout to use countdown Dec 3, 2017
@mithunsasidharan
Copy link
Contributor Author

@apapirovski : Thanks much for the support !

@maclover7 maclover7 added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Dec 3, 2017
@maclover7
Copy link
Contributor

@maclover7
Copy link
Contributor

Landing...

@maclover7 maclover7 self-assigned this Dec 4, 2017
@maclover7
Copy link
Contributor

Thank you for your contribution, landed in 996bfcc.
❤️ 💚 💙 💛 💜

@maclover7 maclover7 closed this Dec 4, 2017
maclover7 pushed a commit that referenced this pull request Dec 4, 2017
PR-URL: #17341
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
@addaleax addaleax removed the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Dec 7, 2017
MylesBorins pushed a commit that referenced this pull request Dec 12, 2017
PR-URL: #17341
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
MylesBorins pushed a commit that referenced this pull request Dec 12, 2017
PR-URL: #17341
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
@MylesBorins MylesBorins mentioned this pull request Dec 12, 2017
gibfahn pushed a commit that referenced this pull request Dec 20, 2017
PR-URL: #17341
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
@gibfahn gibfahn mentioned this pull request Dec 20, 2017
gibfahn pushed a commit that referenced this pull request Dec 20, 2017
PR-URL: #17341
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
@gibfahn gibfahn mentioned this pull request Dec 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
http Issues or PRs related to the http subsystem. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants