summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2021-01-20 23:47:17 +0900
committerGitHub <noreply@github.com>2021-01-20 15:47:17 +0100
commit0a159bea15473254399e80c8e1536c0bb7f80fcf (patch)
tree1cb2266e0de3dcdb08b8ecec912a5f2d201b9f6e /cli
parentffb4b32e9246dec2d452f81d530e8738e19e5a4e (diff)
fix(ops/net): fix panic in op_dns_resolve (#9187)
Diffstat (limited to 'cli')
-rw-r--r--cli/tests/resolve_dns.ts6
-rw-r--r--cli/tests/resolve_dns.ts.out1
2 files changed, 7 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");
+}
diff --git a/cli/tests/resolve_dns.ts.out b/cli/tests/resolve_dns.ts.out
index 10bd78e8a..78381e6c6 100644
--- a/cli/tests/resolve_dns.ts.out
+++ b/cli/tests/resolve_dns.ts.out
@@ -14,3 +14,4 @@ SRV
[{"priority":0,"weight":100,"port":1234,"target":"srv.com."}]
TXT
[["foo","bar"]]
+Error thrown for not-found-example.com