fix: add env_lock guard to git discovery tests

This commit is contained in:
YeonGyu-Kim committed 2026-04-01 19:02:12 +09:00
1 parent c849c0672f
commit 543b7725ee
3 files changed
+8 -6

No files matched your search

+2
View File
@@ -600,6 +600,7 @@ mod tests {
#[test]
fn discover_with_git_includes_status_snapshot() {
let _guard = env_lock();
let root = temp_dir();
fs::create_dir_all(&root).expect("root dir");
std::process::Command::new("git")
@@ -624,6 +625,7 @@ mod tests {
#[test]
fn discover_with_git_includes_diff_snapshot_for_tracked_changes() {
let _guard = env_lock();
let root = temp_dir();
fs::create_dir_all(&root).expect("root dir");
std::process::Command::new("git")