From d93c0a801249f361d95721fb0fc239a95159af5c Mon Sep 17 00:00:00 2001 From: "sorokin.oleg.edu" Date: Thu, 24 Sep 2026 20:25:17 -0700 Subject: [PATCH] Initialize Process literal fixture with its source workspace --- crates/oa-desktop/src/app/process_removal/tests.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/oa-desktop/src/app/process_removal/tests.rs b/crates/oa-desktop/src/app/process_removal/tests.rs index b6fb966b..f602bca7 100644 --- a/crates/oa-desktop/src/app/process_removal/tests.rs +++ b/crates/oa-desktop/src/app/process_removal/tests.rs @@ -68,8 +68,12 @@ fn native() -> App { let owner = alias(document.project(), "assessment"); let mut app = open_project(document.project().clone(), owner); app.document = document; + // Replace the generated split workspace just as open_source_project does. + // sync preserves discovered files and is not a new-document initializer. + app.source_workspace = Workspace::new(app.document.bundle(), true); app.sync(); app.reconcile_multiselect(); + assert_eq!(app.source_workspace.bundle(), native_bundle(BASELINE)); app } fn alias(project: &Project, name: &str) -> Id {