diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2021-01-20 23:47:17 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-20 15:47:17 +0100 |
commit | 0a159bea15473254399e80c8e1536c0bb7f80fcf (patch) | |
tree | 1cb2266e0de3dcdb08b8ecec912a5f2d201b9f6e /cli/tests/resolve_dns.ts | |
parent | ffb4b32e9246dec2d452f81d530e8738e19e5a4e (diff) |
fix(ops/net): fix panic in op_dns_resolve (#9187)
Diffstat (limited to 'cli/tests/resolve_dns.ts')
-rw-r--r-- | cli/tests/resolve_dns.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/tests/resolve_dns.ts b/cli/tests/resolve_dns.ts index 35abfc803..7865d9680 100644 --- a/cli/tests/resolve_dns.ts +++ b/cli/tests/resolve_dns.ts @@ -34,3 +34,9 @@ console.log(JSON.stringify(srv)); console.log("TXT"); console.log(JSON.stringify(txt)); + +try { + await Deno.resolveDns("not-found-example.com", "A", nameServer); +} catch (e) { + console.log("Error thrown for not-found-example.com"); +} |