diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2021-08-29 22:48:52 +0000 |
---|---|---|
committer | Sven-Hendrik Haase <svenstaro@gmail.com> | 2021-08-29 22:48:52 +0000 |
commit | 51ddbd63e5ebc08f6f9a3f213220371a79c59fa2 (patch) | |
tree | d10c65b3d8c7e1c8699c7542f53708bbb785c422 /tests/serve_request.rs | |
parent | Fix some warnings when building without TLS (diff) | |
download | miniserve-51ddbd63e5ebc08f6f9a3f213220371a79c59fa2.tar.gz miniserve-51ddbd63e5ebc08f6f9a3f213220371a79c59fa2.zip |
Fix stderr output in test index_fallback_to_listing
Diffstat (limited to '')
-rw-r--r-- | tests/serve_request.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/serve_request.rs b/tests/serve_request.rs index 09a20d4..bbbb7d9 100644 --- a/tests/serve_request.rs +++ b/tests/serve_request.rs @@ -3,7 +3,8 @@ mod fixtures; use assert_cmd::prelude::*; use assert_fs::fixture::TempDir; use fixtures::{ - port, server, tmpdir, Error, TestServer, DIRECTORIES, FILES, HIDDEN_DIRECTORIES, HIDDEN_FILES, + port, server, server_no_stderr, tmpdir, Error, TestServer, DIRECTORIES, FILES, + HIDDEN_DIRECTORIES, HIDDEN_FILES, }; use http::StatusCode; use regex::Regex; @@ -222,8 +223,8 @@ fn serves_requests_custom_index_notice(tmpdir: TempDir, port: u16) -> Result<(), } #[rstest] -#[case(server(&["--index", FILES[0]]))] -#[case(server(&["--index", "does-not-exist.html"]))] +#[case(server_no_stderr(&["--index", FILES[0]]))] +#[case(server_no_stderr(&["--index", "does-not-exist.html"]))] fn index_fallback_to_listing(#[case] server: TestServer) -> Result<(), Error> { // If index file is not found, show directory listing instead. // both cases should return `Ok` |