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 /std/http/server_test.ts | |
| parent | 4f1fa82d1d0458170039d4809c3879993659e560 (diff) | |
rename dial to connect and dialTLS to connectTLS (#3710)
Diffstat (limited to 'std/http/server_test.ts')
| -rw-r--r-- | std/http/server_test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/std/http/server_test.ts b/std/http/server_test.ts index 5fe06f357..aee9db0ff 100644 --- a/std/http/server_test.ts +++ b/std/http/server_test.ts @@ -595,7 +595,7 @@ test({ await delay(100); // Reqeusts to the server and immediately closes the connection - const conn = await Deno.dial({ port: 4502 }); + const conn = await Deno.connect({ port: 4502 }); await conn.write(new TextEncoder().encode("GET / HTTP/1.0\n\n")); conn.close(); @@ -637,7 +637,7 @@ test({ .catch((_): void => {}); // Ignores the error when closing the process. // Requests to the server and immediately closes the connection - const conn = await Deno.dialTLS({ + const conn = await Deno.connectTLS({ hostname: "localhost", port: 4503, certFile: "http/testdata/tls/RootCA.pem" @@ -721,7 +721,7 @@ if (Deno.build.os !== "win") { assert(!(connRid in resources)); }; const p = serverRoutine(); - const conn = await Deno.dial({ + const conn = await Deno.connect({ hostname: "127.0.0.1", port: 8124 }); |
