Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign uptest: reach res._dump after abort ClientRequest #24191
Conversation
nodejs-github-bot
added
the
test
label
Nov 6, 2018
addaleax
added
http
code-and-learn
labels
Nov 6, 2018
tadhgcreedon
force-pushed the
tadhgcreedon:http-client-request-abort-response-dump
branch
from
73a1820
to
4359904
Nov 7, 2018
This comment has been minimized.
This comment has been minimized.
|
@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) |
This comment has been minimized.
This comment has been minimized.
|
Yeah, a separate new test file may be better |
This comment has been minimized.
This comment has been minimized.
|
Sure, makes sense. Will create a new test file then update. |
tadhgcreedon
force-pushed the
tadhgcreedon:http-client-request-abort-response-dump
branch
from
3179181
to
1a544be
Nov 11, 2018
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Hi @tadhgcreedon, the author of the commits in this PR is not registered on GitHub (steps defined here) Either:
|
tadhgcreedon
force-pushed the
tadhgcreedon:http-client-request-abort-response-dump
branch
from
1a544be
to
c37a91d
Nov 13, 2018
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@addaleax LGTY? |
|
|
||
| req.end(); | ||
| req.abort(); | ||
| req.abort(); |
This comment has been minimized.
This comment has been minimized.
thefourtheye
Nov 20, 2018
Contributor
Havn't checked this completely, but two req.aborts are intentional?
This comment has been minimized.
This comment has been minimized.
Trott
Nov 22, 2018
Member
/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....
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Resume Build CI: https://ci.nodejs.org/job/node-test-pull-request/19013/ |
This comment has been minimized.
This comment has been minimized.
|
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/.) |
tadhgcreedon commentedNov 6, 2018
•
edited
Adds test coverage to
lib/_http_client.jsby 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