From 79e5b57663becad3614bce98e31c7d1d494cb50d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sat, 19 Sep 2020 14:07:54 +0200 Subject: [PATCH] chore: reenable disabled test in std/ (#7578) --- std/http/file_server_test.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/std/http/file_server_test.ts b/std/http/file_server_test.ts index a6fdb4e1b7..93e6e55901 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 { fileServer = await Deno.run({ cmd: [ @@ -60,7 +59,6 @@ async function startFileServerAsLibrary({}: FileServerCfg = {}): Promise { const s = await r.readLine(); assert(s !== null && s.includes("Server running...")); } -*/ async function killFileServer(): Promise { 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 { 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 = ".",