diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-11-20 18:01:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-20 18:01:58 +0100 |
commit | e35e8981f0280905836d3b68fd5ceb6e3c2bc270 (patch) | |
tree | 6dafe7635d79c8b2c92fb32bfc43e33b46c77a25 /std/http | |
parent | 91f293442d5bfb28212b5b13b536ceae06427c99 (diff) |
test(std): make test output less noisy (#8445)
This commit makes output of std/ tests less noisy
by passing "--quiet" flag to Deno subprocesses run
as part of test suite.
Diffstat (limited to 'std/http')
-rw-r--r-- | std/http/file_server_test.ts | 5 | ||||
-rw-r--r-- | std/http/racing_server_test.ts | 2 | ||||
-rw-r--r-- | std/http/server_test.ts | 2 |
3 files changed, 8 insertions, 1 deletions
diff --git a/std/http/file_server_test.ts b/std/http/file_server_test.ts index ca8d3b3b2..5f7137998 100644 --- a/std/http/file_server_test.ts +++ b/std/http/file_server_test.ts @@ -25,6 +25,7 @@ async function startFileServer({ cmd: [ Deno.execPath(), "run", + "--quiet", "--allow-read", "--allow-net", "file_server.ts", @@ -50,6 +51,7 @@ async function startFileServerAsLibrary({}: FileServerCfg = {}): Promise<void> { cmd: [ Deno.execPath(), "run", + "--quiet", "--allow-read", "--allow-net", "testdata/file_server_as_library.ts", @@ -205,6 +207,7 @@ Deno.test("printHelp", async function (): Promise<void> { cmd: [ Deno.execPath(), "run", + "--quiet", // TODO(ry) It ought to be possible to get the help output without // --allow-read. "--allow-read", @@ -264,6 +267,7 @@ async function startTlsFileServer({ cmd: [ Deno.execPath(), "run", + "--quiet", "--allow-read", "--allow-net", "file_server.ts", @@ -319,6 +323,7 @@ Deno.test("partial TLS arguments fail", async function (): Promise<void> { cmd: [ Deno.execPath(), "run", + "--quiet", "--allow-read", "--allow-net", "file_server.ts", diff --git a/std/http/racing_server_test.ts b/std/http/racing_server_test.ts index b8336abcd..5e253c6cd 100644 --- a/std/http/racing_server_test.ts +++ b/std/http/racing_server_test.ts @@ -9,7 +9,7 @@ const moduleDir = dirname(fromFileUrl(import.meta.url)); let server: Deno.Process<Deno.RunOptions & { stdout: "piped" }>; async function startServer(): Promise<void> { server = Deno.run({ - cmd: [Deno.execPath(), "run", "-A", "racing_server.ts"], + cmd: [Deno.execPath(), "run", "--quiet", "-A", "racing_server.ts"], cwd: moduleDir, stdout: "piped", }); diff --git a/std/http/server_test.ts b/std/http/server_test.ts index e7a1c42dc..8a3be71c2 100644 --- a/std/http/server_test.ts +++ b/std/http/server_test.ts @@ -370,6 +370,7 @@ Deno.test({ cmd: [ Deno.execPath(), "run", + "--quiet", "--allow-net", "testdata/simple_server.ts", ], @@ -415,6 +416,7 @@ Deno.test({ cmd: [ Deno.execPath(), "run", + "--quiet", "--allow-net", "--allow-read", "testdata/simple_https_server.ts", |