Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

fix(pruef): the watcher folder test has its own temp folder

purple39f892ba3ef7
diff --git a/src-tauri/src/watchers.rs b/src-tauri/src/watchers.rs
index bdbe6e83..44b238b1 100644
--- a/src-tauri/src/watchers.rs
+++ b/src-tauri/src/watchers.rs
@@ -857,7 +857,7 @@ mod tests {
if let Some(home) = dirs::home_dir() {
assert!(check_folder(&home.to_string_lossy()).is_err());
}
- let tmp = std::env::temp_dir().join(format!("lu-watch-{}", std::process::id()));
+ let tmp = std::env::temp_dir().join(format!("lu-watchers-folder-{}", std::process::id()));
std::fs::create_dir_all(&tmp).unwrap();
assert!(check_folder(&tmp.to_string_lossy()).is_ok());
let _ = std::fs::remove_dir_all(&tmp);