Skip to content

Commit

Permalink
disable install tests for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
salamaashoush committed May 27, 2024
1 parent ed411de commit f1d5806
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/commands/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ pub enum Error {
TooManyVersionsProvided,
}

#[cfg(target_os = "linux")]
#[cfg(test)]
mod tests {
use super::*;
Expand Down Expand Up @@ -238,7 +239,6 @@ mod tests {
}

// latest 4.12 doesn't have macos binaries
#[cfg(target_os = "linux")]
#[test]
fn test_install_latest() {
let base_dir = tempfile::tempdir().unwrap();
Expand All @@ -265,7 +265,6 @@ mod tests {
.unwrap()
.exists());
}

#[test]
fn test_install_nightly() {
let base_dir = tempfile::tempdir().unwrap();
Expand Down
1 change: 1 addition & 0 deletions src/remote_pact_index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ pub fn latest(repo_url: &String) -> Result<Release, crate::http::Error> {
Ok(value)
}

#[cfg(target_os = "linux")]
#[cfg(test)]
mod tests {
use super::*;
Expand Down

0 comments on commit f1d5806

Please sign in to comment.