summaryrefslogtreecommitdiff
path: root/std/http
diff options
context:
space:
mode:
Diffstat (limited to 'std/http')
-rw-r--r--std/http/racing_server_test.ts4
-rw-r--r--std/http/server_test.ts6
2 files changed, 5 insertions, 5 deletions
diff --git a/std/http/racing_server_test.ts b/std/http/racing_server_test.ts
index b66986247..8b7ff9829 100644
--- a/std/http/racing_server_test.ts
+++ b/std/http/racing_server_test.ts
@@ -1,4 +1,4 @@
-const { dial, run } = Deno;
+const { connect, run } = Deno;
import { test, runIfMain } from "../testing/mod.ts";
import { assert, assertEquals } from "../testing/asserts.ts";
@@ -50,7 +50,7 @@ World 4
test(async function serverPipelineRace(): Promise<void> {
await startServer();
- const conn = await dial({ port: 4501 });
+ const conn = await connect({ port: 4501 });
const r = new TextProtoReader(new BufReader(conn));
await conn.write(new TextEncoder().encode(input));
const outLines = output.split("\n");
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
});