diff options
author | cyqsimon <28627918+cyqsimon@users.noreply.github.com> | 2022-08-22 10:21:23 +0000 |
---|---|---|
committer | cyqsimon <28627918+cyqsimon@users.noreply.github.com> | 2022-08-22 10:51:17 +0000 |
commit | 682a84d960f2fc915d176ef1b64196c9ba6fc776 (patch) | |
tree | 17022b3df39b0144d57568f2536233c91524aa85 | |
parent | Use SASS nesting (diff) | |
download | miniserve-682a84d960f2fc915d176ef1b64196c9ba6fc776.tar.gz miniserve-682a84d960f2fc915d176ef1b64196c9ba6fc776.zip |
Fix QR code test
Diffstat (limited to '')
-rw-r--r-- | tests/qrcode.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/qrcode.rs b/tests/qrcode.rs index 32d9438..c2bebd6 100644 --- a/tests/qrcode.rs +++ b/tests/qrcode.rs @@ -5,14 +5,12 @@ use assert_fs::TempDir; use fixtures::{port, server_no_stderr, tmpdir, Error, TestServer}; use reqwest::StatusCode; use rstest::rstest; -use std::process::Command; +use std::process::{Command, Stdio}; use std::thread::sleep; use std::time::Duration; #[cfg(not(windows))] fn run_in_faketty_kill_and_get_stdout(template: &Command) -> Result<String, Error> { - use std::process::Stdio; - use fake_tty::{bash_command, get_stdout}; let cmd = { @@ -72,6 +70,8 @@ fn qrcode_hidden_in_non_tty_when_enabled(tmpdir: TempDir, port: u16) -> Result<( .arg(port.to_string()) .arg("-q") .arg(tmpdir.path()) + .stdout(Stdio::piped()) + .stderr(Stdio::piped()) .spawn()?; sleep(Duration::from_secs(1)); |