Skip to content

Commit

Permalink
chore: disable another flaky Node compat test (denoland#20846)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju committed Oct 9, 2023
1 parent d868bae commit 29026fa
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions cli/tests/node_compat/test/internet/test-dns.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 29026fa

Please sign in to comment.