1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

chore: disable another flaky Node compat test (#20846)

This commit is contained in:
Bartek Iwańczuk 2023-10-09 13:23:40 +02:00 committed by GitHub
parent d868bae90a
commit 29026fac21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -214,24 +214,26 @@ TEST(async function test_resolveNs(done) {
checkWrap(req);
});
TEST(function test_resolveNs_failure(done) {
dnsPromises.resolveNs(addresses.NOT_FOUND)
.then(common.mustNotCall())
.catch(common.mustCall((err) => {
assert.strictEqual(err.code, 'ENOTFOUND');
}));
// TODO(bartlomieju): this test became very flaky on CI, returning `UNKNOWN`
// instead of `ENOTFOUND`.
// TEST(function test_resolveNs_failure(done) {
// dnsPromises.resolveNs(addresses.NOT_FOUND)
// .then(common.mustNotCall())
// .catch(common.mustCall((err) => {
// assert.strictEqual(err.code, 'ENOTFOUND');
// }));
const req = dns.resolveNs(addresses.NOT_FOUND, function(err, result) {
assert.ok(err instanceof Error);
assert.strictEqual(err.code, 'ENOTFOUND');
// const req = dns.resolveNs(addresses.NOT_FOUND, function(err, result) {
// assert.ok(err instanceof Error);
// assert.strictEqual(err.code, 'ENOTFOUND');
assert.strictEqual(result, undefined);
// assert.strictEqual(result, undefined);
done();
});
// done();
// });
checkWrap(req);
});
// checkWrap(req);
// });
TEST(async function test_resolveSrv(done) {
function validateResult(result) {