Skip to content

Commit 4d6b137

Browse files
test: fix
1 parent eb62359 commit 4d6b137

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

test/e2e/multi-compiler.test.js

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ describe("multi compiler", () => {
3434
pageErrors.push(error);
3535
});
3636

37-
await page.goto(`http://127.0.0.1:${port}/`, {
37+
await page.goto(`http://localhost:${port}/`, {
3838
waitUntil: "networkidle0",
3939
});
4040

@@ -72,7 +72,7 @@ describe("multi compiler", () => {
7272
pageErrors.push(error);
7373
});
7474

75-
await page.goto(`http://127.0.0.1:${port}/one-main.html`, {
75+
await page.goto(`http://localhost:${port}/one-main.html`, {
7676
waitUntil: "networkidle0",
7777
});
7878

@@ -82,7 +82,7 @@ describe("multi compiler", () => {
8282
pageErrors = [];
8383
consoleMessages = [];
8484

85-
await page.goto(`http://127.0.0.1:${port}/two-main.html`, {
85+
await page.goto(`http://localhost:${port}/two-main.html`, {
8686
waitUntil: "networkidle0",
8787
});
8888

@@ -140,7 +140,7 @@ describe("multi compiler", () => {
140140
pageErrors.push(error);
141141
});
142142

143-
await page.goto(`http://127.0.0.1:${port}/one-main.html`, {
143+
await page.goto(`http://localhost:${port}/one-main.html`, {
144144
waitUntil: "networkidle0",
145145
});
146146

@@ -154,7 +154,7 @@ describe("multi compiler", () => {
154154
pageErrors = [];
155155
consoleMessages = [];
156156

157-
await page.goto(`http://127.0.0.1:${port}/two-main.html`, {
157+
await page.goto(`http://localhost:${port}/two-main.html`, {
158158
waitUntil: "networkidle0",
159159
});
160160

@@ -219,7 +219,7 @@ describe("multi compiler", () => {
219219
pageErrors.push(error);
220220
});
221221

222-
await page.goto(`http://127.0.0.1:${port}/one-main.html`, {
222+
await page.goto(`http://localhost:${port}/one-main.html`, {
223223
waitUntil: "networkidle0",
224224
});
225225

@@ -233,7 +233,7 @@ describe("multi compiler", () => {
233233
pageErrors = [];
234234
consoleMessages = [];
235235

236-
await page.goto(`http://127.0.0.1:${port}/two-main.html`, {
236+
await page.goto(`http://localhost:${port}/two-main.html`, {
237237
waitUntil: "networkidle0",
238238
});
239239

@@ -290,7 +290,7 @@ describe("multi compiler", () => {
290290
pageErrors.push(error);
291291
});
292292

293-
await page.goto(`http://127.0.0.1:${port}/one-main.html`, {
293+
await page.goto(`http://localhost:${port}/one-main.html`, {
294294
waitUntil: "networkidle0",
295295
});
296296

@@ -304,7 +304,7 @@ describe("multi compiler", () => {
304304
pageErrors = [];
305305
consoleMessages = [];
306306

307-
await page.goto(`http://127.0.0.1:${port}/two-main.html`, {
307+
await page.goto(`http://localhost:${port}/two-main.html`, {
308308
waitUntil: "networkidle0",
309309
});
310310

@@ -361,7 +361,7 @@ describe("multi compiler", () => {
361361
pageErrors.push(error);
362362
});
363363

364-
await page.goto(`http://127.0.0.1:${port}/one-main.html`, {
364+
await page.goto(`http://localhost:${port}/one-main.html`, {
365365
waitUntil: "networkidle0",
366366
});
367367

@@ -375,7 +375,7 @@ describe("multi compiler", () => {
375375
pageErrors = [];
376376
consoleMessages = [];
377377

378-
await page.goto(`http://127.0.0.1:${port}/two-main.html`, {
378+
await page.goto(`http://localhost:${port}/two-main.html`, {
379379
waitUntil: "networkidle0",
380380
});
381381

@@ -411,7 +411,7 @@ describe("multi compiler", () => {
411411
const consoleMessages = [];
412412
try {
413413
const serverResponse = await page.goto(
414-
`http://127.0.0.1:${port}/server.js`,
414+
`http://localhost:${port}/server.js`,
415415
{
416416
waitUntil: "networkidle0",
417417
},
@@ -430,7 +430,7 @@ describe("multi compiler", () => {
430430
pageErrors.push(error);
431431
});
432432

433-
await page.goto(`http://127.0.0.1:${port}/browser.html`, {
433+
await page.goto(`http://localhost:${port}/browser.html`, {
434434
waitUntil: "networkidle0",
435435
});
436436
} catch (error) {
@@ -470,7 +470,7 @@ describe("multi compiler", () => {
470470

471471
try {
472472
const serverResponse = await page.goto(
473-
`http://127.0.0.1:${port}/server.js`,
473+
`http://localhost:${port}/server.js`,
474474
{
475475
waitUntil: "networkidle0",
476476
},
@@ -500,7 +500,7 @@ describe("multi compiler", () => {
500500
pageErrors.push(error);
501501
});
502502

503-
await page.goto(`http://127.0.0.1:${port}/browser.html`, {
503+
await page.goto(`http://localhost:${port}/browser.html`, {
504504
waitUntil: "networkidle0",
505505
});
506506

@@ -545,7 +545,7 @@ describe("multi compiler", () => {
545545

546546
try {
547547
const serverResponse = await page.goto(
548-
`http://127.0.0.1:${port}/server.js`,
548+
`http://localhost:${port}/server.js`,
549549
{
550550
waitUntil: "networkidle0",
551551
},
@@ -575,7 +575,7 @@ describe("multi compiler", () => {
575575
pageErrors.push(error);
576576
});
577577

578-
await page.goto(`http://127.0.0.1:${port}/browser.html`, {
578+
await page.goto(`http://localhost:${port}/browser.html`, {
579579
waitUntil: "networkidle0",
580580
});
581581

@@ -624,7 +624,7 @@ describe("multi compiler", () => {
624624

625625
try {
626626
const serverResponse = await page.goto(
627-
`http://127.0.0.1:${port}/server.js`,
627+
`http://localhost:${port}/server.js`,
628628
{
629629
waitUntil: "networkidle0",
630630
},
@@ -646,7 +646,7 @@ describe("multi compiler", () => {
646646
pageErrors.push(error);
647647
});
648648

649-
await page.goto(`http://127.0.0.1:${port}/browser.html`, {
649+
await page.goto(`http://localhost:${port}/browser.html`, {
650650
waitUntil: "networkidle0",
651651
});
652652

@@ -663,7 +663,7 @@ describe("multi compiler", () => {
663663
pageErrors = [];
664664
consoleMessages = [];
665665

666-
await page.goto(`http://127.0.0.1:${port}/browser.html`, {
666+
await page.goto(`http://localhost:${port}/browser.html`, {
667667
waitUntil: "networkidle0",
668668
});
669669

@@ -713,7 +713,7 @@ describe("multi compiler", () => {
713713

714714
try {
715715
const serverResponse = await page.goto(
716-
`http://127.0.0.1:${port}/server.js`,
716+
`http://localhost:${port}/server.js`,
717717
{
718718
waitUntil: "networkidle0",
719719
},
@@ -735,7 +735,7 @@ describe("multi compiler", () => {
735735
pageErrors.push(error);
736736
});
737737

738-
await page.goto(`http://127.0.0.1:${port}/browser.html`, {
738+
await page.goto(`http://localhost:${port}/browser.html`, {
739739
waitUntil: "networkidle0",
740740
});
741741

@@ -752,7 +752,7 @@ describe("multi compiler", () => {
752752
pageErrors = [];
753753
consoleMessages = [];
754754

755-
await page.goto(`http://127.0.0.1:${port}/browser.html`, {
755+
await page.goto(`http://localhost:${port}/browser.html`, {
756756
waitUntil: "networkidle0",
757757
});
758758

test/e2e/port.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ describe("port", () => {
8989
pageErrors.push(error);
9090
});
9191

92-
await page.goto(`http://127.0.0.1:${address.port}/`, {
92+
await page.goto(`http://localhost:${address.port}/`, {
9393
waitUntil: "networkidle0",
9494
});
9595

0 commit comments

Comments
 (0)