diff options
Diffstat (limited to 'cli/js/tls_test.ts')
-rw-r--r-- | cli/js/tls_test.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/js/tls_test.ts b/cli/js/tls_test.ts index da2c1cec8..de841f5a1 100644 --- a/cli/js/tls_test.ts +++ b/cli/js/tls_test.ts @@ -7,10 +7,10 @@ import { runIfMain } from "../../std/testing/mod.ts"; const encoder = new TextEncoder(); const decoder = new TextDecoder(); -test(async function dialTLSNoPerm(): Promise<void> { +test(async function connectTLSNoPerm(): Promise<void> { let err; try { - await Deno.dialTLS({ hostname: "github.com", port: 443 }); + await Deno.connectTLS({ hostname: "github.com", port: 443 }); } catch (e) { err = e; } @@ -18,10 +18,10 @@ test(async function dialTLSNoPerm(): Promise<void> { assertEquals(err.name, "PermissionDenied"); }); -test(async function dialTLSCertFileNoReadPerm(): Promise<void> { +test(async function connectTLSCertFileNoReadPerm(): Promise<void> { let err; try { - await Deno.dialTLS({ + await Deno.connectTLS({ hostname: "github.com", port: 443, certFile: "cli/tests/tls/RootCA.crt" @@ -173,7 +173,7 @@ testPerm({ read: true, net: true }, async function dialAndListenTLS(): Promise< } ); - const conn = await Deno.dialTLS({ + const conn = await Deno.connectTLS({ hostname, port, certFile: "cli/tests/tls/RootCA.pem" |