Skip to content

armgit / herdr

Public Imported from GitHub
0

the runtime your coding agents live on

test: normalize worktree source path assertion

Ogulcan Celikc4dd318ea377
diff --git a/src/app/api/worktrees.rs b/src/app/api/worktrees.rs
index e11e69cea..2ae282a13 100644
--- a/src/app/api/worktrees.rs
+++ b/src/app/api/worktrees.rs
@@ -1367,7 +1367,10 @@ mod tests {
let ResponseResult::WorktreeList { source, worktrees } = success.result else {
panic!("expected worktree_list response");
};
- assert_eq!(source.repo_root, repo.display().to_string());
+ assert_eq!(
+ crate::worktree::canonical_or_original(std::path::Path::new(&source.repo_root)),
+ crate::worktree::canonical_or_original(&repo)
+ );
assert_eq!(
source.source_workspace_id.as_deref(),
Some(parent_id.as_str())