Fix test covering this case
This commit is contained in:
parent
aa2af53f56
commit
b8fd6435d7
1 changed files with 2 additions and 4 deletions
|
@ -2110,11 +2110,9 @@ mod tests {
|
|||
let project = Project::test(fs, None, cx).await;
|
||||
let (_, workspace) = cx.add_window(|cx| Workspace::test_new(project.clone(), cx));
|
||||
|
||||
let task = workspace.update(cx, |workspace, cx| {
|
||||
Pane::close_active_item(workspace, &CloseActiveItem, cx).unwrap()
|
||||
workspace.update(cx, |workspace, cx| {
|
||||
assert!(Pane::close_active_item(workspace, &CloseActiveItem, cx).is_none())
|
||||
});
|
||||
|
||||
assert!(task.await.is_ok())
|
||||
}
|
||||
|
||||
#[gpui::test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue