summaryrefslogtreecommitdiff
path: root/tests/unit_node/http_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/http_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/http_test.ts')
-rw-r--r--tests/unit_node/http_test.ts8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/unit_node/http_test.ts b/tests/unit_node/http_test.ts
index 84d6f5727..2b3b8f509 100644
--- a/tests/unit_node/http_test.ts
+++ b/tests/unit_node/http_test.ts
@@ -322,14 +322,10 @@ Deno.test("[node/http] IncomingRequest socket has remoteAddress + remotePort", a
// deno-lint-ignore no-explicit-any
const port = (server.address() as any).port;
const res = await fetch(
- `http://localhost:${port}/`,
+ `http://127.0.0.1:${port}/`,
);
await res.arrayBuffer();
- if (Deno.build.os === "windows") {
- assertEquals(remoteAddress, "127.0.0.1");
- } else {
- assertEquals(remoteAddress, "::1");
- }
+ assertEquals(remoteAddress, "127.0.0.1");
assertEquals(typeof remotePort, "number");
server.close(() => resolve());
});