From 077d74764fd12954ea061d8a8dc2c39a12f167d5 Mon Sep 17 00:00:00 2001 From: haelyra <49814733+haelyra@users.noreply.github.com> Date: Thu, 1 Oct 2026 12:09:57 -0400 Subject: [PATCH] test(ecc2): assert isolated config roots --- ecc2/src/config/mod.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ecc2/src/config/mod.rs b/ecc2/src/config/mod.rs index bdfdc5a8c..6c413e6f1 100644 --- a/ecc2/src/config/mod.rs +++ b/ecc2/src/config/mod.rs @@ -1169,6 +1169,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); + } + #[cfg(unix)] #[test] fn config_root_under_test_is_owner_only() {