Fix config test on macOS (#11579)

When running these tests locally, you may have system-wide config or
requirements files. This makes the tests ignore these files.
This commit is contained in:
gt-oai
2026-02-12 15:56:48 +00:00
committed by GitHub
parent aeaa68347f
commit d8b130d9a4
2 changed files with 23 additions and 1 deletions

View File

@@ -240,7 +240,9 @@ async fn returns_empty_when_all_layers_missing() {
let overrides = LoaderOverrides {
managed_config_path: Some(managed_path),
#[cfg(target_os = "macos")]
managed_preferences_base64: None,
// Force managed preferences to resolve as empty so this test does not
// inherit non-empty machine-specific managed state.
managed_preferences_base64: Some(String::new()),
macos_managed_config_requirements_base64: None,
};