From 41f8988dc7f7e307af28af52e6d89469c824f214 Mon Sep 17 00:00:00 2001 From: Yazan AbdAl-Rahman Date: Mon, 29 Jul 2024 00:04:05 +0300 Subject: fix(http): Adjust hostname display for Windows when using 0.0.0.0 (#24698) Fixes #24687 --------- Co-authored-by: Yoshiya Hinosawa --- tests/specs/serve/basic/__test__.jsonc | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'tests/specs/serve/basic/__test__.jsonc') diff --git a/tests/specs/serve/basic/__test__.jsonc b/tests/specs/serve/basic/__test__.jsonc index 9a37d60ff..a8eaca0b6 100644 --- a/tests/specs/serve/basic/__test__.jsonc +++ b/tests/specs/serve/basic/__test__.jsonc @@ -1,5 +1,15 @@ { - "args": "serve --port 12345 main.ts", - "output": "main.out", - "tempDir": true + "tempDir": true, + "tests": { + "basic_win": { + "if": "windows", + "args": "serve --host 0.0.0.0 --port 12345 main.ts", + "output": "main.out" + }, + "basic_not_win": { + "if": "unix", + "args": "serve --host 0.0.0.0 --port 12345 main.ts", + "output": "main_not_win.out" + } + } } -- cgit v1.2.3