summaryrefslogtreecommitdiff
path: root/tests/specs
diff options
context:
space:
mode:
authorYazan AbdAl-Rahman <yazan.abdalrahman@exalt.ps>2024-07-29 00:04:05 +0300
committerGitHub <noreply@github.com>2024-07-28 23:04:05 +0200
commit41f8988dc7f7e307af28af52e6d89469c824f214 (patch)
tree6f4623efb0111e6beae102ccb12b87e38d21b252 /tests/specs
parent50fa4d7ef5d0615d60042eda72e34adb773e2ecf (diff)
fix(http): Adjust hostname display for Windows when using 0.0.0.0 (#24698)
Fixes #24687 --------- Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Diffstat (limited to 'tests/specs')
-rw-r--r--tests/specs/serve/basic/__test__.jsonc16
-rw-r--r--tests/specs/serve/basic/main_not_win.out1
2 files changed, 14 insertions, 3 deletions
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"
+ }
+ }
}
diff --git a/tests/specs/serve/basic/main_not_win.out b/tests/specs/serve/basic/main_not_win.out
new file mode 100644
index 000000000..cbfd3395e
--- /dev/null
+++ b/tests/specs/serve/basic/main_not_win.out
@@ -0,0 +1 @@
+deno serve: Listening on http://0.0.0.0:12345/