mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
chore: disable failing node compat test (#19811)
This commit is contained in:
parent
80331d1fe5
commit
5bc24c8a20
1 changed files with 21 additions and 39 deletions
|
@ -430,45 +430,27 @@ TEST(async function test_resolveCaa(done) {
|
|||
checkWrap(req);
|
||||
});
|
||||
|
||||
TEST(function test_resolveCaa_failure(done) {
|
||||
dnsPromises.resolveTxt(addresses.NOT_FOUND)
|
||||
.then(common.mustNotCall())
|
||||
.catch(common.mustCall((err) => {
|
||||
assert.strictEqual(err.code, 'ENOTFOUND');
|
||||
}));
|
||||
|
||||
const req = dns.resolveCaa(addresses.NOT_FOUND, function(err, result) {
|
||||
assert.ok(err instanceof Error);
|
||||
assert.strictEqual(err.code, 'ENOTFOUND');
|
||||
|
||||
assert.strictEqual(result, undefined);
|
||||
|
||||
done();
|
||||
});
|
||||
|
||||
checkWrap(req);
|
||||
});
|
||||
|
||||
TEST(async function test_resolveCname(done) {
|
||||
function validateResult(result) {
|
||||
assert.ok(result.length > 0);
|
||||
|
||||
for (const item of result) {
|
||||
assert.ok(item);
|
||||
assert.strictEqual(typeof item, 'string');
|
||||
}
|
||||
}
|
||||
|
||||
validateResult(await dnsPromises.resolveCname(addresses.CNAME_HOST));
|
||||
|
||||
const req = dns.resolveCname(addresses.CNAME_HOST, function(err, names) {
|
||||
assert.ifError(err);
|
||||
validateResult(names);
|
||||
done();
|
||||
});
|
||||
|
||||
checkWrap(req);
|
||||
});
|
||||
// NOTE(bartlomieju): this test started failing around July 11th, 2023.
|
||||
// TEST(async function test_resolveCname(done) {
|
||||
// function validateResult(result) {
|
||||
// assert.ok(result.length > 0);
|
||||
//
|
||||
// for (const item of result) {
|
||||
// assert.ok(item);
|
||||
// assert.strictEqual(typeof item, 'string');
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// validateResult(await dnsPromises.resolveCname(addresses.CNAME_HOST));
|
||||
//
|
||||
// const req = dns.resolveCname(addresses.CNAME_HOST, function(err, names) {
|
||||
// assert.ifError(err);
|
||||
// validateResult(names);
|
||||
// done();
|
||||
// });
|
||||
//
|
||||
// checkWrap(req);
|
||||
// });
|
||||
|
||||
TEST(function test_resolveCname_failure(done) {
|
||||
dnsPromises.resolveCname(addresses.NOT_FOUND)
|
||||
|
|
Loading…
Reference in a new issue