From cc026ea76197c7d3fba6a4ed61b5726ae8ddf9d8 Mon Sep 17 00:00:00 2001 From: Harold Hunt Date: Fri, 23 Oct 2026 22:03:33 -0400 Subject: [PATCH] test: run the live preview dedup test on Unix only The preview comes from the Unix helper's streaming walk. On Windows serve sends a finished tree with no preview, so the test's unwrap failed there. It was hidden on main because cargo test stops at the first failing test binary, which was the app's. --- crates/disktree-core/src/remote.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/disktree-core/src/remote.rs b/crates/disktree-core/src/remote.rs index 6877d2e..8d2881a 100644 --- a/crates/disktree-core/src/remote.rs +++ b/crates/disktree-core/src/remote.rs @@ -1205,6 +1205,9 @@ mod tests { assert_eq!(shared.lock().unwrap().stage, Stage::Finalizing); } + // The live preview this checks comes from the Unix helper's streaming + // walk; on other systems `serve` sends a finished tree with no preview. + #[cfg(unix)] #[test] fn desktop_dedup_counts_links_once_without_requiring_external_names() { let dir = tempfile::tempdir().unwrap();