From 3da8f7f94409354e0985443cfb618b0d6b231ad8 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Tue, 5 Apr 2022 11:55:29 -0600 Subject: [PATCH] Fix dispatch path in test --- crates/zed/src/zed.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/zed/src/zed.rs b/crates/zed/src/zed.rs index b6062fd026..d3ce28ff5b 100644 --- a/crates/zed/src/zed.rs +++ b/crates/zed/src/zed.rs @@ -744,7 +744,11 @@ mod tests { let pane2_item = pane_2.read(cx).active_item().unwrap(); assert_eq!(pane2_item.project_path(cx.as_ref()), Some(file1.clone())); - cx.dispatch_action(window_id, vec![pane_2.id()], &workspace::CloseActiveItem); + cx.dispatch_action( + window_id, + vec![workspace.id(), pane_2.id()], + &workspace::CloseActiveItem, + ); }); cx.foreground().run_until_parked(); workspace.read_with(cx, |workspace, _| {