mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
test: fix flaky test-dns-any.js
Remove google.com from domains tested with ANY queries. Fixes: https://github.com/nodejs/node/issues/31721 PR-URL: https://github.com/nodejs/node/pull/32017 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
@@ -115,28 +115,6 @@ function processResult(res) {
|
||||
return types;
|
||||
}
|
||||
|
||||
TEST(async function test_google(done) {
|
||||
function validateResult(res) {
|
||||
const types = processResult(res);
|
||||
assert.ok(
|
||||
types.A && types.AAAA && types.MX && types.NS && types.TXT && types.SOA,
|
||||
`Missing record type, found ${Object.keys(types)}`);
|
||||
}
|
||||
|
||||
validateResult(await dnsPromises.resolve('google.com', 'ANY'));
|
||||
|
||||
const req = dns.resolve(
|
||||
'google.com',
|
||||
'ANY',
|
||||
common.mustCall(function(err, ret) {
|
||||
assert.ifError(err);
|
||||
validateResult(ret);
|
||||
done();
|
||||
}));
|
||||
|
||||
checkWrap(req);
|
||||
});
|
||||
|
||||
TEST(async function test_sip2sip_for_naptr(done) {
|
||||
function validateResult(res) {
|
||||
const types = processResult(res);
|
||||
|
||||
Reference in New Issue
Block a user