From 2b42ad27bc17dc2093bcdea0e839afc2f19140ce Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Tue, 27 Jan 2026 13:57:40 -0800 Subject: fix: custom data dir test on windows (#3109) ## Checks - [ ] I am happy for maintainers to push small adjustments to this PR, to speed up the review cycle - [ ] I have checked that there are no existing pull requests for the same thing --- crates/atuin-client/src/settings.rs | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'crates') diff --git a/crates/atuin-client/src/settings.rs b/crates/atuin-client/src/settings.rs index 466bc8f1..d0e0ae2f 100644 --- a/crates/atuin-client/src/settings.rs +++ b/crates/atuin-client/src/settings.rs @@ -1296,12 +1296,18 @@ mod tests { let kv_db_path: String = config.get("kv.db_path")?; let scripts_db_path: String = config.get("scripts.db_path")?; - assert_eq!(db_path, "/custom/data/dir/history.db"); - assert_eq!(key_path, "/custom/data/dir/key"); - assert_eq!(session_path, "/custom/data/dir/session"); - assert_eq!(record_store_path, "/custom/data/dir/records.db"); - assert_eq!(kv_db_path, "/custom/data/dir/kv.db"); - assert_eq!(scripts_db_path, "/custom/data/dir/scripts.db"); + assert_eq!(db_path, custom_dir.join("history.db").to_str().unwrap()); + assert_eq!(key_path, custom_dir.join("key").to_str().unwrap()); + assert_eq!(session_path, custom_dir.join("session").to_str().unwrap()); + assert_eq!( + record_store_path, + custom_dir.join("records.db").to_str().unwrap() + ); + assert_eq!(kv_db_path, custom_dir.join("kv.db").to_str().unwrap()); + assert_eq!( + scripts_db_path, + custom_dir.join("scripts.db").to_str().unwrap() + ); Ok(()) } -- cgit v1.3.1