test(fuse): a simulated daemon does not ask the real API for its share id

This commit is contained in:
nvrl committed 2026-10-04 21:51:36 +02:00
1 parent d850265225
commit 3b81cc5240
1 file changed
+3 -1
+3 -1
View File
@@ -680,7 +680,9 @@ pub(crate) fn mount_with(
// The photos volume has its own event stream; without it the gallery only // The photos volume has its own event stream; without it the gallery only
// learns about a phone-side deletion when the timeline goes stale. // learns about a phone-side deletion when the timeline goes stale.
rt.spawn(run_photos_event_sync(core.clone())); 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 repair_core = core.clone();
let root_uid = core.primary_root_uid.clone(); let root_uid = core.primary_root_uid.clone();
if let Err(error) = std::thread::Builder::new() if let Err(error) = std::thread::Builder::new()