ci: Use ping instead of timeout

Signed-off-by: John Nunley <dev@notgull.net>
This commit is contained in:
John Nunley 2024-03-30 08:28:00 -07:00
parent 3e8ec39875
commit 29b5f4750e
No known key found for this signature in database
GPG Key ID: 2FE69973CFD64832
1 changed files with 5 additions and 1 deletions

View File

@ -16,7 +16,11 @@ fn unix_sleep() {
#[test]
fn windows_sleep() {
block_on(async {
let status = Command::new("timeout").arg("5").status().await.unwrap();
let status = Command::new("ping")
.args(["-n", "5", "127.0.0.1"])
.status()
.await
.unwrap();
assert!(status.success());
});
}