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:
parent
d3cce36701
commit
79e5b57663
1 changed files with 1 additions and 4 deletions
|
@ -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 = ".",
|
||||
|
|
Loading…
Reference in a new issue