From 42487808416cebad98d98051da87853212a87f57 Mon Sep 17 00:00:00 2001 From: noah Date: Fri, 1 Jul 2022 19:19:21 -0500 Subject: [PATCH] maybe --- tests-integration/src/bin/test-cat.rs | 2 +- tests-integration/tests/process_stdio.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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 }