aboutsummaryrefslogtreecommitdiff
path: root/tests/process_issue_2174.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/process_issue_2174.rs')
-rw-r--r--tests/process_issue_2174.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/process_issue_2174.rs b/tests/process_issue_2174.rs
index b5a63ce..6ee7d1a 100644
--- a/tests/process_issue_2174.rs
+++ b/tests/process_issue_2174.rs
@@ -36,11 +36,10 @@ async fn issue_2174() {
});
// Sleep enough time so that the child process's stdin's buffer fills.
- time::delay_for(Duration::from_secs(1)).await;
+ time::sleep(Duration::from_secs(1)).await;
// Kill the child process.
- child.kill().unwrap();
- let _ = child.await;
+ child.kill().await.unwrap();
assert_err!(handle.await);
}