mirror of
https://github.com/tobi/disktree.git
synced 2026-11-29 00:01:10 +00:00
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.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user