From 34b99fec8edcff7d3b667f273afea69df15e4d5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sat, 18 Jan 2020 18:35:12 +0100 Subject: rename dial to connect and dialTLS to connectTLS (#3710) --- cli/js/tls_test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cli/js/tls_test.ts') 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 { +test(async function connectTLSNoPerm(): Promise { 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 { assertEquals(err.name, "PermissionDenied"); }); -test(async function dialTLSCertFileNoReadPerm(): Promise { +test(async function connectTLSCertFileNoReadPerm(): Promise { 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" -- cgit v1.2.3