1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-01 16:51:13 -05:00

revert hostname changes as we now have autoSelectFamily (aka happy eyeballs) enabled

This commit is contained in:
Yoshiya Hinosawa 2024-11-13 12:35:39 +09:00
parent e999ae67ca
commit 3aad065798
No known key found for this signature in database
GPG key ID: 9017DB4559488785

View file

@ -460,8 +460,7 @@ Deno.test("[node/http] send request with non-chunked body", async () => {
let requestHeaders: Headers; let requestHeaders: Headers;
let requestBody = ""; let requestBody = "";
// TODO(kt3k): This should be "localhost" when we implemented autoSelectFamily option for createConnections in node:net const hostname = "localhost";
const hostname = "127.0.0.1";
const port = 4505; const port = 4505;
const handler = async (req: Request) => { const handler = async (req: Request) => {
@ -518,8 +517,7 @@ Deno.test("[node/http] send request with chunked body", async () => {
let requestHeaders: Headers; let requestHeaders: Headers;
let requestBody = ""; let requestBody = "";
// TODO(kt3k): This should be "localhost" when we implemented autoSelectFamily option for createConnections in node:net const hostname = "localhost";
const hostname = "127.0.0.1";
const port = 4505; const port = 4505;
const handler = async (req: Request) => { const handler = async (req: Request) => {
@ -566,8 +564,7 @@ Deno.test("[node/http] send request with chunked body as default", async () => {
let requestHeaders: Headers; let requestHeaders: Headers;
let requestBody = ""; let requestBody = "";
// TODO(kt3k): This should be "localhost" when we implemented autoSelectFamily option for createConnections in node:net const hostname = "localhost";
const hostname = "127.0.0.1";
const port = 4505; const port = 4505;
const handler = async (req: Request) => { const handler = async (req: Request) => {