mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 03:25:59 +00:00
Fix dispatch path in test
This commit is contained in:
parent
c3b947ca26
commit
3da8f7f944
1 changed files with 5 additions and 1 deletions
|
@ -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, _| {
|
||||
|
|
Loading…
Reference in a new issue