-
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: bypass dns for IPv6 net tests #16976
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.
IIUC this is safe to do because the integration test of the family option is done in test/internet/test-dns-ipv*.js
...
client.on('error', (err) => { | ||
// ENOTFOUND means we don't have the requested address, so we assume IPv6 | ||
// is not supported on the machine and skip the test. | ||
if ((err.syscall === 'getaddrinfo') && (err.code === 'ENOTFOUND')) { |
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.
I don't think we need this anymore if we are mocking lookup
? AFAICT the errors are emitted there.
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.
I'll remove and stress test.
Should be ready to land. New CI: https://ci.nodejs.org/job/node-test-pull-request/11594/ |
PR-URL: nodejs#16976 Refs: nodejs#16248 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
e071487
to
283b949
Compare
Thanks. Landed in 283b949 |
@refack mind raising a backport? |
PR-URL: nodejs#16976 Refs: nodejs#16248 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Refs: #16248
For to test that target
https
andnet
mock out the call todns
, but verify all the right parameters are passedChecklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
test,net,https,dns