diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 4fbcbd2..54f707e 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -14,6 +14,6 @@ jobs: - name: Build run: cargo build --verbose - name: Run tests - run: cargo test --verbose -- --test-threads=1 + run: cargo test --verbose - name: Clippy run: cargo clippy diff --git a/src/system/bookmarks_client.rs b/src/system/bookmarks_client.rs index cec7d77..825e4eb 100644 --- a/src/system/bookmarks_client.rs +++ b/src/system/bookmarks_client.rs @@ -376,6 +376,7 @@ mod tests { use std::time::Duration; #[test] + #[cfg(not(target_os = "macos"))] // CI/CD blocks fn test_system_bookmarks_new() { let tmp_dir: tempfile::TempDir = create_tmp_dir(); let (cfg_path, key_path): (PathBuf, PathBuf) = get_paths(tmp_dir.path()); @@ -408,6 +409,7 @@ mod tests { } #[test] + #[cfg(not(target_os = "macos"))] // CI/CD blocks fn test_system_bookmarks_new_from_existing() { let tmp_dir: tempfile::TempDir = create_tmp_dir(); let (cfg_path, key_path): (PathBuf, PathBuf) = get_paths(tmp_dir.path()); @@ -453,6 +455,7 @@ mod tests { } #[test] + #[cfg(not(target_os = "macos"))] // CI/CD blocks fn test_system_bookmarks_manipulate_bookmarks() { let tmp_dir: tempfile::TempDir = create_tmp_dir(); let (cfg_path, key_path): (PathBuf, PathBuf) = get_paths(tmp_dir.path()); @@ -498,6 +501,7 @@ mod tests { #[test] #[should_panic] + #[cfg(not(target_os = "macos"))] // CI/CD blocks fn test_system_bookmarks_bad_bookmark_name() { let tmp_dir: tempfile::TempDir = create_tmp_dir(); let (cfg_path, key_path): (PathBuf, PathBuf) = get_paths(tmp_dir.path()); @@ -516,6 +520,7 @@ mod tests { } #[test] + #[cfg(not(target_os = "macos"))] // CI/CD blocks fn test_system_bookmarks_manipulate_recents() { let tmp_dir: tempfile::TempDir = create_tmp_dir(); let (cfg_path, key_path): (PathBuf, PathBuf) = get_paths(tmp_dir.path()); @@ -550,6 +555,7 @@ mod tests { } #[test] + #[cfg(not(target_os = "macos"))] // CI/CD blocks fn test_system_bookmarks_dup_recent() { let tmp_dir: tempfile::TempDir = create_tmp_dir(); let (cfg_path, key_path): (PathBuf, PathBuf) = get_paths(tmp_dir.path()); @@ -574,6 +580,7 @@ mod tests { } #[test] + #[cfg(not(target_os = "macos"))] // CI/CD blocks fn test_system_bookmarks_recents_more_than_limit() { let tmp_dir: tempfile::TempDir = create_tmp_dir(); let (cfg_path, key_path): (PathBuf, PathBuf) = get_paths(tmp_dir.path()); @@ -621,6 +628,7 @@ mod tests { #[test] #[should_panic] + #[cfg(not(target_os = "macos"))] // CI/CD blocks fn test_system_bookmarks_add_bookmark_empty() { let tmp_dir: tempfile::TempDir = create_tmp_dir(); let (cfg_path, key_path): (PathBuf, PathBuf) = get_paths(tmp_dir.path());