diff options
| author | Ellie Huxtable <ellie@atuin.sh> | 2026-01-27 13:57:40 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-27 13:57:40 -0800 |
| commit | 2b42ad27bc17dc2093bcdea0e839afc2f19140ce (patch) | |
| tree | 6dcf3712083248fa677a2fb1741874c0a7931e61 /crates | |
| parent | feat: remove user verification functionality (#3108) (diff) | |
| download | atuin-2b42ad27bc17dc2093bcdea0e839afc2f19140ce.zip | |
fix: custom data dir test on windows (#3109)
<!-- Thank you for making a PR! Bug fixes are always welcome, but if
you're adding a new feature or changing an existing one, we'd really
appreciate if you open an issue, post on the forum, or drop in on
Discord -->
## 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
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/atuin-client/src/settings.rs | 18 |
1 files changed, 12 insertions, 6 deletions
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(()) } |
