-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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: reach res._dump after abort ClientRequest #24191
test: reach res._dump after abort ClientRequest #24191
Conversation
73a1820
to
4359904
Compare
@tadhgcreedon I’m not sure, but would it maybe make sense to test both cases here, e.g. by creating a new test file rather than modifying an existing one? I think this might be affecting the previous functionality of the test… (/cc @nodejs/http) |
Yeah, a separate new test file may be better |
Sure, makes sense. Will create a new test file then update. |
3179181
to
1a544be
Compare
Hi @tadhgcreedon, the author of the commits in this PR is not registered on GitHub (steps defined here) Either:
|
1a544be
to
c37a91d
Compare
@addaleax LGTY? |
|
||
req.end(); | ||
req.abort(); | ||
req.abort(); |
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.
Havn't checked this completely, but two req.abort
s are intentional?
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.
/ping @tadhgcreedon Two abort() calls like that are intentional? If so, great. If not, can you remove one? Or I can totally remove one. Either way. I just want to see this get merged....
Resume Build CI: https://ci.nodejs.org/job/node-test-pull-request/19013/ |
PR-URL: nodejs#24191 Reviewed-By: Ouyang Yadong <[email protected]> Reviewed-By: Rich Trott <[email protected]>
Landed in f5b8853. Thanks for the contribution! 🎉 (If you're interested in other possible contributions to Node.js but don't have a good idea of where to start looking, some ideas are posted at https://www.nodetodo.org/next-steps/.) |
PR-URL: #24191 Reviewed-By: Ouyang Yadong <[email protected]> Reviewed-By: Rich Trott <[email protected]>
PR-URL: nodejs#24191 Reviewed-By: Ouyang Yadong <[email protected]> Reviewed-By: Rich Trott <[email protected]>
PR-URL: #24191 Reviewed-By: Ouyang Yadong <[email protected]> Reviewed-By: Rich Trott <[email protected]>
PR-URL: #24191 Reviewed-By: Ouyang Yadong <[email protected]> Reviewed-By: Rich Trott <[email protected]>
Adds test coverage to
lib/_http_client.js
by reaching a line of code inside a callback that gets registered on the'response'
event after aborting a client request, by emitting that event.Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes