From 3e8ec39875ea1563586d5115019954b69e9d8299 Mon Sep 17 00:00:00 2001 From: John Nunley Date: Sat, 30 Mar 2024 08:08:05 -0700 Subject: [PATCH] ci: Add test for Windows as well Signed-off-by: John Nunley --- tests/sleep.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/sleep.rs b/tests/sleep.rs index 30b943d..eba21e9 100644 --- a/tests/sleep.rs +++ b/tests/sleep.rs @@ -11,3 +11,12 @@ fn unix_sleep() { assert!(status.success()); }); } + +#[cfg(windows)] +#[test] +fn windows_sleep() { + block_on(async { + let status = Command::new("timeout").arg("5").status().await.unwrap(); + assert!(status.success()); + }); +}