Skip to content

Commit

Permalink
test(node): update domain names in dns test
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k committed Nov 12, 2022
1 parent 7a68de4 commit e7f25a3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
5 changes: 4 additions & 1 deletion node/_tools/test/common/internet.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ const addresses = {
// record not found. Use this to guarantee record not found.
NOT_FOUND: 'come.on.fhqwhgads.test',
// A host with SRV records registered
SRV_HOST: '_jabber._tcp.google.com',
// TODO(kt3k): Temporarily use _caldav._tcp.google.com instead of
// _jabber._tcp.google.com, which currently doesn't respond
// SRV_HOST: '_jabber._tcp.google.com',
SRV_HOST: '_caldav._tcp.google.com',
// A host with PTR records registered
PTR_HOST: '8.8.8.8.in-addr.arpa',
// A host with NAPTR records registered
Expand Down
11 changes: 9 additions & 2 deletions node/_tools/test/internet/test-dns-any.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,17 @@ TEST(async function test_google_for_cname_and_srv(done) {
assert.ok(types.SRV);
}

validateResult(await dnsPromises.resolve('_jabber._tcp.google.com', 'ANY'));
// TODO(kt3k): Temporarily use _caldav._tcp.google.com instead of
// _jabber._tcp.google.com, which currently doesn't respond
// validateResult(await dnsPromises.resolve('_jabber._tcp.google.com', 'ANY'));
validateResult(await dnsPromises.resolve('_caldav._tcp.google.com', 'ANY'));


// TODO(kt3k): Temporarily use _caldav._tcp.google.com instead of
// _jabber._tcp.google.com, which currently doesn't respond
const req = dns.resolve(
'_jabber._tcp.google.com',
// '_jabber._tcp.google.com',
'_caldav._tcp.google.com',
'ANY',
common.mustSucceed((ret) => {
validateResult(ret);
Expand Down

0 comments on commit e7f25a3

Please sign in to comment.