-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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: add test for internalConnect() when address type is IPv6 #22444
test: add test for internalConnect() when address type is IPv6 #22444
Conversation
The Travis CI failure seems related:
|
0fef1ee
to
9c172e7
Compare
9c172e7
to
ba908ba
Compare
|
||
client.on('error', common.mustCall(function onError(err) { | ||
const onError = (err, options) => { |
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.
Could this be a function declaration?
function onError(err, options) {
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.
It's a named function expression.
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.
It's a style preference, function declaration are much more common in the test suite than named function expressions.
Thanks @addaleax, I added |
CI: https://ci.nodejs.org/job/node-test-pull-request/16650/ (edit: ✔️) |
Hello @yanivfriedensohn and אהלן. Thank you for your contribution 🥇 P.S. If you have any question you can also feel free to contact me directly. |
Hi @refack and שלום. Following your comment I changed |
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.
💯
Thank you for following up. |
Landed in e03f9c5, thanks for the PR! 🎉 |
PR-URL: #22444 Reviewed-By: Refael Ackermann <[email protected]>
PR-URL: #22444 Reviewed-By: Refael Ackermann <[email protected]>
PR-URL: #22444 Reviewed-By: Refael Ackermann <[email protected]>
PR-URL: #22444 Reviewed-By: Refael Ackermann <[email protected]>
According to the latest coverage report, internalConnect() is uncovered when address type is IPv6 (https://coverage.nodejs.org/coverage-36696cfe8479f3fd/root/net.js.html#L887). This PR adds a test for internalConnect() when address type is IPv6.
I didn't add a test when address type is neither IPv4 nor IPv6 since this condition isn't reachable.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes