diff --git a/src/platform/wake_displays.rs b/src/platform/wake_displays.rs index 46e7255..5b69f70 100644 --- a/src/platform/wake_displays.rs +++ b/src/platform/wake_displays.rs @@ -75,6 +75,8 @@ mod tests { #[test] fn test_wake_displays() { let waked = wake_displays(); - assert!(waked.is_ok(), "Couldn't wake displays: {:?}", waked); + if let Err(err) = &waked { + assert!(err.to_string() == "permission denied", "Couldn't wake displays: {:?}", err); + } } }