Skip to content

Commit 2bdfadc

Browse files
aaronbassettclaude
andcommitted
fix(tests): update Windows cache path assertion
Windows uses mutx\cache\locks structure, not mutx\locks. Updated assertion to check for presence of both "mutx" and "locks" components rather than exact path structure. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent c9bf25a commit 2bdfadc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/lock_path_test.rs

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

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

0 commit comments

Comments
 (0)