1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-11 08:33:43 -05:00

chore: reenable disabled test in std/ (#7578)

This commit is contained in:
Bartek Iwańczuk 2020-09-19 14:07:54 +02:00 committed by GitHub
parent d3cce36701
commit 79e5b57663
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = ".",