From ad2ac8249120d5e8621865f4a99e34e590e62eda Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Fri, 30 Oct 2026 03:14:59 -0600 Subject: [PATCH] test(store): the last two root answers compared as the system spells them (macOS) Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01HS8WZziDnyxunC23MUxrLp --- crates/ledger-store/tests/root.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/ledger-store/tests/root.rs b/crates/ledger-store/tests/root.rs index 6d0b58b..ea46e95 100644 --- a/crates/ledger-store/tests/root.rs +++ b/crates/ledger-store/tests/root.rs @@ -236,12 +236,15 @@ fn setup_records_a_root_chosen_elsewhere_and_forgets_it_when_back_to_default() { assert!(report.recorded); assert_eq!( Root::find_in(fresh.path(), None).unwrap().path(), - xdg.join("wanderbooks") + std::fs::canonicalize(&xdg).unwrap().join("wanderbooks") ); // A relative XDG_DATA_HOME is ignored, as the spec says. let other = tmp("setup-rel"); let (root, report) = Root::setup(other.path(), None, Some(Path::new("rel"))).unwrap(); - assert_eq!(root.path(), default_root(other.path())); + assert_eq!( + root.path(), + default_root(&std::fs::canonicalize(other.path()).unwrap()) + ); assert!(!report.recorded); }