-
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: increase coverage for dns.promises.lookup() #27299
Conversation
Add coverage for uv_getaddrinfo() returning an error.
This adds coverage for node/lib/internal/dns/promises.js Line 96 in d5bb500
|
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
test/parallel/test-dns-lookup.js
Outdated
assert.strictEqual(error.code, 'ENOMEM'); | ||
assert.strictEqual(error.hostname, 'example.com'); | ||
}) | ||
); |
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.
Please use assert.rejects
instead.
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.
Sure, done.
Landed in 7167eb2 |
Add coverage for uv_getaddrinfo() returning an error. PR-URL: nodejs#27299 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Add coverage for uv_getaddrinfo() returning an error.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes