From fa3b3b68b30e531d020f7760f081d7409d5be85d Mon Sep 17 00:00:00 2001 From: maciektr Date: Mon, 20 Nov 2023 17:36:35 +0100 Subject: [PATCH] Ignore failing http registry tests --- scarb/tests/http_registry.rs | 8 ++++++++ scarb/tests/local_registry.rs | 4 ++++ scarb/tests/package.rs | 4 ++++ scarb/tests/registry_checksums.rs | 4 ++++ 4 files changed, 20 insertions(+) diff --git a/scarb/tests/http_registry.rs b/scarb/tests/http_registry.rs index c56368aac..102b519c7 100644 --- a/scarb/tests/http_registry.rs +++ b/scarb/tests/http_registry.rs @@ -11,6 +11,10 @@ use scarb_test_support::project_builder::{Dep, DepBuilder, ProjectBuilder}; use scarb_test_support::registry::http::HttpRegistry; #[test] +#[cfg_attr( + not(target_family = "unix"), + ignore = "registry test failing on windows" +)] fn usage() { let mut registry = HttpRegistry::serve(); registry.publish(|t| { @@ -190,6 +194,10 @@ fn missing_config_json() { } #[test] +#[cfg_attr( + not(target_family = "unix"), + ignore = "registry test failing on windows" +)] fn caching() { let cache_dir = TempDir::new().unwrap(); diff --git a/scarb/tests/local_registry.rs b/scarb/tests/local_registry.rs index 740109a10..13582f41a 100644 --- a/scarb/tests/local_registry.rs +++ b/scarb/tests/local_registry.rs @@ -10,6 +10,10 @@ use scarb_test_support::project_builder::{Dep, DepBuilder, ProjectBuilder}; use scarb_test_support::registry::local::LocalRegistry; #[test] +#[cfg_attr( + not(target_family = "unix"), + ignore = "registry test failing on windows" +)] fn usage() { let mut registry = LocalRegistry::create(); registry.publish(|t| { diff --git a/scarb/tests/package.rs b/scarb/tests/package.rs index c0064ef4e..720488f8f 100644 --- a/scarb/tests/package.rs +++ b/scarb/tests/package.rs @@ -295,6 +295,10 @@ fn reserved_files_collision() { } #[test] +#[cfg_attr( + not(target_family = "unix"), + ignore = "registry test failing on windows" +)] fn generated_manifest() { let t = TempDir::new().unwrap(); diff --git a/scarb/tests/registry_checksums.rs b/scarb/tests/registry_checksums.rs index ed0688270..8b7337073 100644 --- a/scarb/tests/registry_checksums.rs +++ b/scarb/tests/registry_checksums.rs @@ -7,6 +7,10 @@ use scarb_test_support::project_builder::{Dep, DepBuilder, ProjectBuilder}; use scarb_test_support::registry::local::LocalRegistry; #[test] +#[cfg_attr( + not(target_family = "unix"), + ignore = "registry test failing on windows" +)] fn checksum_mismatch() { let mut registry = LocalRegistry::create(); registry.publish(|t| {