diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2021-03-28 19:44:52 +0000 |
---|---|---|
committer | Sven-Hendrik Haase <svenstaro@gmail.com> | 2021-03-28 19:44:52 +0000 |
commit | d1f1ff93c7d667614bf50e877eb1eef7eed9132a (patch) | |
tree | e81666f16a191d0fdb10fc61204f91b1d0e73e04 | |
parent | Change default log level to Warn (diff) | |
download | miniserve-d1f1ff93c7d667614bf50e877eb1eef7eed9132a.tar.gz miniserve-d1f1ff93c7d667614bf50e877eb1eef7eed9132a.zip |
Fix tests
Diffstat (limited to '')
-rw-r--r-- | tests/serve_request.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/serve_request.rs b/tests/serve_request.rs index 95449f5..6477bc2 100644 --- a/tests/serve_request.rs +++ b/tests/serve_request.rs @@ -185,17 +185,18 @@ fn serves_requests_custom_index_notice(tmpdir: TempDir, port: u16) -> Result<(), .arg(port.to_string()) .arg(tmpdir.path()) .stdout(Stdio::piped()) + .stderr(Stdio::piped()) .spawn()?; sleep(Duration::from_secs(1)); child.kill()?; let output = child.wait_with_output().expect("Failed to read stdout"); - let all_text = String::from_utf8(output.stdout); + let all_text = String::from_utf8(output.stderr); assert!(all_text .unwrap() - .contains("The provided index file could not be found")); + .contains("The file 'not.html' provided for option --index could not be found.")); Ok(()) } |