From 037466e9cdec913d0f146532fde28b26093267f1 Mon Sep 17 00:00:00 2001 From: Aleksei Kosyrev Date: Wed, 18 May 2022 14:32:12 +0300 Subject: fix(ext/tls): ability to ignore IP-address certificate errors (#14610) --- cli/tests/unit/tls_test.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'cli/tests/unit') 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(); }, ); -- cgit v1.2.3