ci: Add a sleep test
I think this catches errors in notification for the Linux backend. Signed-off-by: John Nunley <dev@notgull.net>
This commit is contained in:
parent
bbd42b56f8
commit
75e2ea1959
|
@ -0,0 +1,13 @@
|
|||
//! Sleep test.
|
||||
|
||||
use async_process::Command;
|
||||
use futures_lite::future::block_on;
|
||||
|
||||
#[cfg(unix)]
|
||||
#[test]
|
||||
fn unix_sleep() {
|
||||
block_on(async {
|
||||
let status = Command::new("sleep").arg("1").status().await.unwrap();
|
||||
assert!(status.success());
|
||||
});
|
||||
}
|
Loading…
Reference in New Issue