Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: disable flaky Node compat test #20832

Merged
merged 1 commit into from
Oct 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
chore: disable flaky Node compat test
  • Loading branch information
bartlomieju committed Oct 8, 2023
commit 133d31df5c89eab3d20ee479dd18e1eac499e835
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 @@ -172,24 +172,26 @@ TEST(async function test_resolveMx(done) {
checkWrap(req);
});

TEST(function test_resolveMx_failure(done) {
dnsPromises.resolveMx(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_resolveMx_failure(done) {
// dnsPromises.resolveMx(addresses.NOT_FOUND)
// .then(common.mustNotCall())
// .catch(common.mustCall((err) => {
// assert.strictEqual(err.code, 'ENOTFOUND');
// }));

const req = dns.resolveMx(addresses.NOT_FOUND, function(err, result) {
assert.ok(err instanceof Error);
assert.strictEqual(err.code, 'ENOTFOUND');
// const req = dns.resolveMx(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_resolveNs(done) {
function validateResult(result) {
Expand Down