From 2532820a643d2116fad30676b5ecb676690aa0c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Saparelli?= Date: Sun, 5 Nov 2023 00:14:33 +1300 Subject: [PATCH] Fix tests --- tests/tokio_unix.rs | 2 +- tests/tokio_windows.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/tokio_unix.rs b/tests/tokio_unix.rs index 68a6e22..a941ace 100644 --- a/tests/tokio_unix.rs +++ b/tests/tokio_unix.rs @@ -101,7 +101,7 @@ async fn kill_and_try_wait_normal() -> Result<()> { async fn kill_and_try_wait_group() -> Result<()> { let mut child = Command::new("yes").stdout(Stdio::null()).group_spawn()?; assert!(child.try_wait()?.is_none()); - child.kill()?; + child.kill().await?; sleep(DIE_TIME).await; assert!(child.try_wait()?.is_some()); sleep(DIE_TIME).await; diff --git a/tests/tokio_windows.rs b/tests/tokio_windows.rs index 552b95f..7125ac1 100644 --- a/tests/tokio_windows.rs +++ b/tests/tokio_windows.rs @@ -111,7 +111,7 @@ async fn kill_and_try_wait_group() -> Result<()> { .arg("pause") .group_spawn()?; assert!(child.try_wait()?.is_none()); - child.kill()?; + child.kill().await?; sleep(DIE_TIME).await; assert!(child.try_wait()?.is_some()); sleep(DIE_TIME).await;