-
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: have inspector test pick an open port #10861
Conversation
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.
LGTM with a comment.
@@ -137,6 +137,21 @@ void SendProtocolJson(InspectorSocket* socket) { | |||
SendHttpResponse(socket, data); | |||
} | |||
|
|||
int GetPort(uv_tcp_t* socket, int* err) { |
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.
Would it make more sense to return the error code and pass the port through a function argument (basically the reverse of the current situation)?
@cjihrig I did that, new version uploaded. |
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.
Thanks. LGTM if the CI comes back green.
For some reason, GitHub integration is showing failed tests while https://ci.nodejs.org/job/node-test-pull-request/5950/ is green. |
Yea, that has been a problem for a while now. I think the build team has it on their radar. |
This ensures that cctest can be ran concurrently with other instances of cctest or while the node is ran with --inspect. Ref: nodejs#10858 PR-URL: nodejs#10861 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This ensures that cctest can be ran concurrently with other instances of cctest or while the node is ran with --inspect. Ref: nodejs#10858 PR-URL: nodejs#10861 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This ensures that cctest can be ran concurrently with other instances of
cctest or while the node is ran with --inspect.
Ref: #10858
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
test, inspector - server now works with the port 0 and test leverages that.