Skip to content

Commit 490dc7a

Browse files
aaronbassettclaude
andcommitted
fix(tests): make lock path test more flexible on Windows
The test was checking for "\Local\" but Windows paths contain "AppData\Local". Updated to check for "\mutx\locks\" which is present regardless of the full path structure. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 1384851 commit 490dc7a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/lock_path_test.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ fn test_lock_path_in_cache_directory() {
7474
assert!(path_str.contains("/Library/Caches/mutx/locks/"));
7575

7676
#[cfg(target_os = "windows")]
77-
assert!(path_str.contains("\\Local\\mutx\\locks\\"));
77+
// Windows path: typically C:\Users\<user>\AppData\Local\mutx\locks\
78+
assert!(
79+
path_str.contains("\\mutx\\locks\\"),
80+
"Expected Windows path to contain \\mutx\\locks\\, got: {path_str}"
81+
);
7882
}
7983

8084
#[test]

0 commit comments

Comments
 (0)