aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcyqsimon <28627918+cyqsimon@users.noreply.github.com>2022-08-22 10:21:23 +0000
committercyqsimon <28627918+cyqsimon@users.noreply.github.com>2022-08-22 10:51:17 +0000
commit682a84d960f2fc915d176ef1b64196c9ba6fc776 (patch)
tree17022b3df39b0144d57568f2536233c91524aa85
parentUse SASS nesting (diff)
downloadminiserve-682a84d960f2fc915d176ef1b64196c9ba6fc776.tar.gz
miniserve-682a84d960f2fc915d176ef1b64196c9ba6fc776.zip
Fix QR code test
-rw-r--r--tests/qrcode.rs6
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));