diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-01-18 18:35:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-18 18:35:12 +0100 |
commit | 34b99fec8edcff7d3b667f273afea69df15e4d5e (patch) | |
tree | 108ea1800b83641023baede5bf9bceba8238f203 /cli/js/tls_test.ts | |
parent | 4f1fa82d1d0458170039d4809c3879993659e560 (diff) |
rename dial to connect and dialTLS to connectTLS (#3710)
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" |