From 3b81cc524020eacf090d07f4738ca4854371a2e2 Mon Sep 17 00:00:00 2001 From: Nils Pukropp Date: Sun, 4 Oct 2026 21:51:36 +0200 Subject: [PATCH] test(fuse): a simulated daemon does not ask the real API for its share id --- crates/pdfs-fuse/src/mount.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/pdfs-fuse/src/mount.rs b/crates/pdfs-fuse/src/mount.rs index 884548b..828fd99 100644 --- a/crates/pdfs-fuse/src/mount.rs +++ b/crates/pdfs-fuse/src/mount.rs @@ -680,7 +680,9 @@ pub(crate) fn mount_with( // The photos volume has its own event stream; without it the gallery only // learns about a phone-side deletion when the timeline goes stale. rt.spawn(run_photos_event_sync(core.clone())); - if online { + // Not in a simulation: `client` there reaches no API, and the thread, still + // waiting on it after the stop, held the database a test opens next. + if online && matches!(host, Host::Daemon) { let repair_core = core.clone(); let root_uid = core.primary_root_uid.clone(); if let Err(error) = std::thread::Builder::new()