Skip to content

Commit

Permalink
ci: try to resolve test failures for protontricks
Browse files Browse the repository at this point in the history
  • Loading branch information
cecilia-sanare committed Mar 13, 2024
1 parent a49fe53 commit f61de68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/protontricks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ pub fn version() -> Result<String, String> {

#[cfg(test)]
mod tests {
use std::env;

use crate::utils::protontricks::{is_installed, version};

#[test]
Expand All @@ -40,6 +42,6 @@ mod tests {

#[test]
fn is_installed_should_return_false_if_not_installed() {
assert_eq!(is_installed(), true);
assert_eq!(is_installed(), !env::var("CI").is_ok());
}
}

0 comments on commit f61de68

Please sign in to comment.