diff --git a/ecc2/src/config/mod.rs b/ecc2/src/config/mod.rs index d8211b30a..160a5e26b 100644 --- a/ecc2/src/config/mod.rs +++ b/ecc2/src/config/mod.rs @@ -1157,6 +1157,15 @@ focus_metrics = "e" assert_eq!(Config::config_path(), Config::config_path()); } + #[test] + fn config_path_under_test_is_distinct_across_test_threads() { + let current = Config::config_path(); + let other = std::thread::spawn(Config::config_path) + .join() + .expect("config path thread should complete"); + assert_ne!(current, other); + } + #[test] fn primary_config_path_uses_xdg_style_location() { let path = Config::config_path();