summaryrefslogtreecommitdiff
path: root/cli/tests/unit
diff options
context:
space:
mode:
authorAleksei Kosyrev <albnnc@gmail.com>2022-05-18 14:32:12 +0300
committerGitHub <noreply@github.com>2022-05-18 13:32:12 +0200
commit037466e9cdec913d0f146532fde28b26093267f1 (patch)
treec30c4aea060be94e3fcbc24b6723327e4b84379c /cli/tests/unit
parent4d8261070095e49de68ca21ac3b564887039bd24 (diff)
fix(ext/tls): ability to ignore IP-address certificate errors (#14610)
Diffstat (limited to 'cli/tests/unit')
-rw-r--r--cli/tests/unit/tls_test.ts11
1 files changed, 1 insertions, 10 deletions
diff --git a/cli/tests/unit/tls_test.ts b/cli/tests/unit/tls_test.ts
index 07ffcd487..05eced64e 100644
--- a/cli/tests/unit/tls_test.ts
+++ b/cli/tests/unit/tls_test.ts
@@ -36,18 +36,9 @@ Deno.test({ permissions: { net: false } }, async function connectTLSNoPerm() {
Deno.test(
{ permissions: { read: true, net: true } },
async function connectTLSInvalidHost() {
- const listener = await Deno.listenTls({
- hostname: "localhost",
- port: 3567,
- certFile: "cli/tests/testdata/tls/localhost.crt",
- keyFile: "cli/tests/testdata/tls/localhost.key",
- });
-
await assertRejects(async () => {
- await Deno.connectTls({ hostname: "127.0.0.1", port: 3567 });
+ await Deno.connectTls({ hostname: "256.0.0.0", port: 3567 });
}, TypeError);
-
- listener.close();
},
);