diff options
-rw-r--r-- | std/http/file_server_test.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/std/http/file_server_test.ts b/std/http/file_server_test.ts index a6fdb4e1b..93e6e5590 100644 --- a/std/http/file_server_test.ts +++ b/std/http/file_server_test.ts @@ -41,7 +41,6 @@ async function startFileServer({ assert(s !== null && s.includes("server listening")); } -/* async function startFileServerAsLibrary({}: FileServerCfg = {}): Promise<void> { fileServer = await Deno.run({ cmd: [ @@ -60,7 +59,6 @@ async function startFileServerAsLibrary({}: FileServerCfg = {}): Promise<void> { const s = await r.readLine(); assert(s !== null && s.includes("Server running...")); } -*/ async function killFileServer(): Promise<void> { fileServer.close(); @@ -197,17 +195,16 @@ Deno.test("contentType", async () => { (response.body as Deno.File).close(); }); -/* TODO https://github.com/denoland/deno/issues/7540 Deno.test("file_server running as library", async function (): Promise<void> { await startFileServerAsLibrary(); try { const res = await fetch("http://localhost:8000"); assertEquals(res.status, 200); + const _ = await res.text(); } finally { await killFileServer(); } }); -*/ async function startTlsFileServer({ target = ".", |