diff --git a/tests-integration/src/bin/test-cat.rs b/tests-integration/src/bin/test-cat.rs index 181373f220d..1e40c9d9d0d 100644 --- a/tests-integration/src/bin/test-cat.rs +++ b/tests-integration/src/bin/test-cat.rs @@ -8,7 +8,7 @@ async fn main() { let mut stdin = tokio::io::stdin(); let mut stdout = tokio::io::stdout(); - let _ = tokio::io::copy(&mut stdin, &mut stdout).await.unwrap(); + tokio::io::copy(&mut stdin, &mut stdout).await.unwrap(); stdout.flush().await.unwrap(); } diff --git a/tests-integration/tests/process_stdio.rs b/tests-integration/tests/process_stdio.rs index 89ac679d835..ba85c599576 100644 --- a/tests-integration/tests/process_stdio.rs +++ b/tests-integration/tests/process_stdio.rs @@ -8,12 +8,11 @@ use tokio_test::assert_ok; use futures::future::{self, FutureExt}; use std::convert::TryInto; -use std::env; use std::io; use std::process::{ExitStatus, Stdio}; fn cat() -> Command { - let mut cmd = Command::new(env!("CARGO_BIN_EXE_test-cat")); + let mut cmd = Command::new("cat"); cmd.stdin(Stdio::piped()).stdout(Stdio::piped()); cmd }