summaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
authorLuca Casonato <lucacasonato@yahoo.com>2021-01-24 22:29:36 +0100
committerGitHub <noreply@github.com>2021-01-24 22:29:36 +0100
commit66e99d349b31f5cd30b868d80ebdab6ba749fd96 (patch)
tree2fdf22255cb15a750574d37b33de2a4637d62a5e /std
parentfeff6361b1247c82bb86aedfea349b04899b9610 (diff)
tests: enable wpt for url (#9046)
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...");