Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Use run_until_parked instead of condition
Conrad Irwine7db5d063897
diff --git a/crates/zed/src/zed.rs b/crates/zed/src/zed.rsindex a8a76b92a9c..d294eeae9c1 100644--- a/crates/zed/src/zed.rs+++ b/crates/zed/src/zed.rs@@ -1513,10 +1513,10 @@ mod tests {.as_fake().insert_file("/root/a.txt", "changed".to_string()).await;- editor- .condition::<EditorEvent>(cx, |editor, cx| editor.has_conflict(cx))- .await;++ cx.run_until_parked();cx.read(|cx| assert!(editor.is_dirty(cx)));+ cx.read(|cx| assert!(editor.has_conflict(cx)));let save_task = window.update(cx, |workspace, cx| {