Skip to content

Commit 1ce5fc5

Browse files
committed
no-mistakes(review): Guard HOME-reading memory test with shared env lock
1 parent 5d87af1 commit 1ce5fc5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

crates/codegraph-server/src/memory.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,7 @@ mod tests {
705705
#[test]
706706
fn codegraph_home_dir_ends_with_dot_codegraph() {
707707
// HOME/USERPROFILE is always set in the test environment.
708+
let _guard = crate::test_env::lock();
708709
let dir = codegraph_home_dir().unwrap();
709710
assert_eq!(dir.file_name().and_then(|n| n.to_str()), Some(".codegraph"));
710711
}

0 commit comments

Comments
 (0)