fix: add env_lock guard to git discovery tests

This commit is contained in:
YeonGyu-Kim
2026-04-01 19:00:28 +09:00
parent c849c0672f
commit 543b7725ee
3 changed files with 8 additions and 6 deletions

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")