This commit is contained in:
Ahmed Ibrahim
2025-12-01 13:23:30 -08:00
parent 981e2f742d
commit 0809a45e1c
5 changed files with 64 additions and 39 deletions

View File

@@ -288,8 +288,8 @@ mod tests {
}
#[cfg(target_os = "macos")]
#[test]
fn list_child_pids_includes_spawned_child() {
#[tokio::test]
async fn list_child_pids_includes_spawned_child() {
let mut child = Command::new("/bin/sleep")
.arg("5")
.stdin(Stdio::null())
@@ -305,7 +305,7 @@ mod tests {
found = true;
break;
}
std::thread::sleep(Duration::from_millis(10));
tokio::time::sleep(Duration::from_millis(10)).await;
}
let _ = child.kill();