| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
There are already tests for these things in the internet suite. Unfortunately, those don't count toward code coverage.
Sorry, something went wrong.
|
@cjihrig Code coverage report for internal/dns/promises.js( |
Sorry, something went wrong.
Sorry, something went wrong.
|
@cjihrig I found the tests for these in internet. Please tell me which tests for dns should be in internet or the others. The tests in internet don't run on CI. |
Sorry, something went wrong.
|
Generally, tests that require the Internet should be in the internet suite. Those tests are more prone to network issues, but unfortunately are not run as part of the normal CI. |
Sorry, something went wrong.
|
Thanks for your reply. OK, I'll fix this. |
Sorry, something went wrong.
|
@cjihrig The tests that require the Internet were removed. But tests to check error with invalid host name are remained to improve coverage. Please take a look again. |
Sorry, something went wrong.
Sorry, something went wrong.
Added tests for dnsPromises.lookup to increase coverage and test `onlookup()` and `onlookupall()` methods.
|
@jasnell node-test-commit-freebsd fails but I think it is not related to this. I'm not sure if it will be success, but I rebased this. Would you please run CI again? |
Sorry, something went wrong.
|
freebsd re-build: https://ci.nodejs.org/job/node-test-commit-freebsd/19630/ |
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
@addaleax did a wonderful job of writing a mock DNS server in common/dns.js, for example: |
Sorry, something went wrong.
Added tests for dnsPromises.lookup to increase coverage and test `onlookup()` and `onlookupall()` methods. PR-URL: #21559 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Added tests for dnsPromises.lookup to increase coverage and test `onlookup()` and `onlookupall()` methods. PR-URL: #21559 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
|
The remaining test cases still rely on internet access and will fail if the DNS is hijacked by the ISP. I move them to internet in #22516 |
Sorry, something went wrong.
Added tests for dnsPromises.lookup to increase coverage and test `onlookup()` and `onlookupall()` methods. PR-URL: #21559 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
|
|
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Added tests for dnsPromises.lookup to increase coverage and test
onlookup() and onlookupall() methods.
Checklist