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:
parent
d868bae90a
commit
29026fac21
1 changed files with 16 additions and 14 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue