summaryrefslogtreecommitdiff
path: root/std/http/file_server_test.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-09-19 14:07:54 +0200
committerGitHub <noreply@github.com>2020-09-19 14:07:54 +0200
commit79e5b57663becad3614bce98e31c7d1d494cb50d (patch)
treeb34bc668f919e61eae817502143d4e7ab38f6064 /std/http/file_server_test.ts
parentd3cce36701171884a5a1049d23aa798e3b1c957b (diff)
chore: reenable disabled test in std/ (#7578)
Diffstat (limited to 'std/http/file_server_test.ts')
-rw-r--r--std/http/file_server_test.ts5
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 = ".",