mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
chore: disable flaky Node compat test (#20832)
This commit is contained in:
parent
ae81065c75
commit
d868bae90a
1 changed files with 16 additions and 14 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue