Skip to content

Conversation

@mithunsasidharan
Copy link
Contributor

@mithunsasidharanmithunsasidharan commented Dec 3, 2017

Refactored the test case in test-http-malformed-request to use common.mustCall, 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-botnodejs-github-bot added the test Issues and PRs related to the tests. label Dec 3, 2017
Copy link
Contributor

@apapirovskiapapirovski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test should instead be refactored to use common.mustCall for the response function passed to http.createServer. The nrequests_completed and nrequests_expected variables should still be removed. The server.close() can just be unconditional.

@mithunsasidharan
Copy link
ContributorAuthor

@apapirovski : Thanks for the feedback. I've updated the PR to include the recommended changes. Kindly review the PR now.

Copy link
Contributor

@apapirovskiapapirovski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but the commit message & PR title should be updated

@apapirovski
Copy link
Contributor

@mithunsasidharanmithunsasidharan changed the title refactor : test-http-malformed-request to use countdownrefactor : test-http-malformed-request to use common#mustCallDec 3, 2017
@mithunsasidharanmithunsasidharan changed the title refactor : test-http-malformed-request to use common#mustCallrefactor : test-http-malformed-request to use common.mustCallDec 3, 2017
@mithunsasidharan
Copy link
ContributorAuthor

@apapirovski : Thats's done too.. Thanks.

@mscdexmscdex added the http Issues or PRs related to the http subsystem. label Dec 3, 2017
@apapirovski
Copy link
Contributor

apapirovski commented Dec 3, 2017

The commit message is still too long. Something like test: use common.mustCall in http test would be fine. We don't need to specify the exact test file changed within the message. Thanks!

@mithunsasidharanmithunsasidharan changed the title refactor : test-http-malformed-request to use common.mustCalltest: use common.mustCall in http testDec 3, 2017
@mithunsasidharan
Copy link
ContributorAuthor

@apapirovski : Thanks for the feedback. I've updated the commit message. Kindly review the PR now.

Copy link
Contributor

@apapirovskiapapirovski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still LGTM

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

Landing...

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

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

@addaleaxaddaleax 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: #17439 Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
MylesBorins pushed a commit that referenced this pull request Dec 12, 2017
PR-URL: #17439 Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
@MylesBorinsMylesBorins mentioned this pull request Dec 12, 2017
gibfahn pushed a commit that referenced this pull request Dec 20, 2017
PR-URL: #17439 Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
gibfahn pushed a commit that referenced this pull request Dec 20, 2017
PR-URL: #17439 Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
@gibfahngibfahn mentioned this pull request Dec 20, 2017
gibfahn pushed a commit that referenced this pull request Dec 20, 2017
PR-URL: #17439 Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
@gibfahngibfahn mentioned this pull request Dec 20, 2017
@MylesBorinsMylesBorins mentioned this pull request Dec 20, 2017
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

httpIssues or PRs related to the http subsystem.testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

11 participants

@mithunsasidharan@apapirovski@maclover7@jasnell@lpinca@tniessen@daxlab@mscdex@addaleax@gibfahn@nodejs-github-bot