summaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
Diffstat (limited to 'std')
-rw-r--r--std/http/file_server_test.ts2
-rw-r--r--std/http/testdata/file_server_as_library.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/std/http/file_server_test.ts b/std/http/file_server_test.ts
index 638121b45..94d97cc37 100644
--- a/std/http/file_server_test.ts
+++ b/std/http/file_server_test.ts
@@ -335,7 +335,7 @@ Deno.test("contentType", async () => {
Deno.test("file_server running as library", async function (): Promise<void> {
await startFileServerAsLibrary();
try {
- const res = await fetch("http://localhost:8000");
+ const res = await fetch("http://localhost:4504");
assertEquals(res.status, 200);
const _ = await res.text();
} finally {
diff --git a/std/http/testdata/file_server_as_library.ts b/std/http/testdata/file_server_as_library.ts
index cd4bf68db..87ff31584 100644
--- a/std/http/testdata/file_server_as_library.ts
+++ b/std/http/testdata/file_server_as_library.ts
@@ -1,7 +1,7 @@
import { serve } from "../server.ts";
import { serveFile } from "../file_server.ts";
-const server = serve({ port: 8000 });
+const server = serve({ port: 4504 });
console.log("Server running...");