summaryrefslogtreecommitdiff
path: root/tests/unit_node/tls_test.ts
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2024-10-30 02:41:16 +0900
committerGitHub <noreply@github.com>2024-10-29 18:41:16 +0100
commita69224ea5bd02f08108aac867c492754095f2d34 (patch)
tree253aad351353b0ff8f3e3fb57785a8de41aadcdf /tests/unit_node/tls_test.ts
parent51978a76540cac72dd35528dd023c3fc6d5eeca6 (diff)
Revert "fix(ext/node): fix dns.lookup result ordering (#26264)" (#26621)
This reverts commit d59599fc187c559ee231882773e1c5a2b932fc3d. Closes #26588
Diffstat (limited to 'tests/unit_node/tls_test.ts')
-rw-r--r--tests/unit_node/tls_test.ts12
1 files changed, 3 insertions, 9 deletions
diff --git a/tests/unit_node/tls_test.ts b/tests/unit_node/tls_test.ts
index 236dab208..43d6205b0 100644
--- a/tests/unit_node/tls_test.ts
+++ b/tests/unit_node/tls_test.ts
@@ -32,15 +32,13 @@ for (
) {
Deno.test(`tls.connect sends correct ALPN: '${alpnServer}' + '${alpnClient}' = '${expected}'`, async () => {
const listener = Deno.listenTls({
- hostname: "localhost",
port: 0,
key,
cert,
alpnProtocols: alpnServer,
});
const outgoing = tls.connect({
- host: "::1",
- servername: "localhost",
+ host: "localhost",
port: listener.addr.port,
ALPNProtocols: alpnClient,
secureContext: {
@@ -63,7 +61,6 @@ Deno.test("tls.connect makes tls connection", async () => {
const ctl = new AbortController();
let port;
const serve = Deno.serve({
- hostname: "localhost",
port: 0,
key,
cert,
@@ -74,8 +71,7 @@ Deno.test("tls.connect makes tls connection", async () => {
await delay(200);
const conn = tls.connect({
- host: "::1",
- servername: "localhost",
+ host: "localhost",
port,
secureContext: {
ca: rootCaCert,
@@ -106,7 +102,6 @@ Deno.test("tls.connect mid-read tcp->tls upgrade", async () => {
const { promise, resolve } = Promise.withResolvers<void>();
const ctl = new AbortController();
const serve = Deno.serve({
- hostname: "localhost",
port: 8443,
key,
cert,
@@ -116,8 +111,7 @@ Deno.test("tls.connect mid-read tcp->tls upgrade", async () => {
await delay(200);
const conn = tls.connect({
- host: "::1",
- servername: "localhost",
+ host: "localhost",
port: 8443,
secureContext: {
ca: rootCaCert,