Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
passcod committed Nov 4, 2023
1 parent 10e12c2 commit 2532820
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/tokio_unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion tests/tokio_windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2532820

Please sign in to comment.