Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4158180

Browse files
authored
test(site): e2e: use IPv4 address for web server (#9843)
1 parent 4622ea2 commit 4158180

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

site/e2e/helpers.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,10 @@ export const createServer = async (
569569
port: number,
570570
): Promise<ReturnType<typeof express>> => {
571571
const e = express();
572-
await new Promise<void>((r) => e.listen(port, r));
572+
// We need to specify the local IP address as the web server
573+
// tends to fail with IPv6 related error:
574+
// listen EADDRINUSE: address already in use :::50516
575+
await new Promise<void>((r) => e.listen(port, "0.0.0.0", r));
573576
return e;
574577
};
575578

0 commit comments

Comments
 (0)