Skip to content

Commit

Permalink
Ignore permission denied errors in tests:
Browse files Browse the repository at this point in the history
Github actions cannot control the mouse.
  • Loading branch information
haimgel committed Oct 22, 2023
1 parent 5781322 commit 77fe3fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/platform/wake_displays.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

0 comments on commit 77fe3fa

Please sign in to comment.