Skip to content

Commit 37e93ae

Browse files
committed
Fix window test for Deno.serve log
1 parent 9da6bd9 commit 37e93ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/hono.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ describe("hono error handling", () => {
2323

2424
for await (const line of stdout.values({ preventCancel: true })) {
2525
if (line.includes("Listening on")) {
26+
const address = Deno.build.os === "windows" ? "localhost" : "0.0.0.0";
2627
assertEquals(
2728
line,
28-
"Listening on http://0.0.0.0:8000/ (http://localhost:8000/)",
29+
`Listening on http://${address}:8000/ (http://localhost:8000/)`,
2930
);
3031
break;
3132
}

0 commit comments

Comments
 (0)