Skip to content

Commit

Permalink
chore(http): fix spawned tests after migration script (#4368)
Browse files Browse the repository at this point in the history
  • Loading branch information
iuioiua authored Feb 22, 2024
1 parent 22c0dfc commit 241c6b2
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions http/file_server_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,11 @@ Deno.test("serveDir() script prints help", async () => {
"--no-check",
"--quiet",
"--no-lock",
"file_server.ts",
"--config",
"deno.json",
"http/file_server.ts",
"--help",
],
cwd: moduleDir,
});
const { stdout } = await command.output();
const output = new TextDecoder().decode(stdout);
Expand All @@ -361,10 +362,11 @@ Deno.test("serveDir() script prints version", async () => {
"--no-check",
"--quiet",
"--no-lock",
"file_server.ts",
"--config",
"deno.json",
"http/file_server.ts",
"--version",
],
cwd: moduleDir,
});
const { stdout } = await command.output();
const output = new TextDecoder().decode(stdout);
Expand All @@ -390,7 +392,9 @@ Deno.test("serveDir() script fails with partial TLS args", async () => {
"--allow-read",
"--allow-net",
"--no-lock",
"file_server.ts",
"--config",
"deno.json",
"http/file_server.ts",
".",
"--host",
"localhost",
Expand All @@ -399,7 +403,6 @@ Deno.test("serveDir() script fails with partial TLS args", async () => {
"-p",
`4578`,
],
cwd: moduleDir,
stderr: "null",
});
const { stdout, success } = await command.output();
Expand Down

0 comments on commit 241c6b2

Please sign in to comment.