Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix test covering this case

Mikayla Makib8fd6435d76a
diff --git a/crates/workspace/src/pane.rs b/crates/workspace/src/pane.rs
index a120523131a..38e9bb5b54f 100644
--- a/crates/workspace/src/pane.rs
+++ b/crates/workspace/src/pane.rs
@@ -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]