Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Save server operations that were in the middle of being applied
Antonio Scandurra4a61e2dfa45f
diff --git a/crates/collab/src/tests/randomized_integration_tests.rs b/crates/collab/src/tests/randomized_integration_tests.rsindex 144484816b2..6a13c4ef2ea 100644--- a/crates/collab/src/tests/randomized_integration_tests.rs+++ b/crates/collab/src/tests/randomized_integration_tests.rs@@ -121,6 +121,7 @@ async fn test_random_collaboration(loop {let Some((next_operation, applied)) = plan.lock().next_server_operation(&clients) else { break };+ applied.store(true, SeqCst);let did_apply = apply_server_operation(deterministic.clone(),&mut server,@@ -132,8 +133,8 @@ async fn test_random_collaboration(cx,).await;- if did_apply {- applied.store(true, SeqCst);+ if !did_apply {+ applied.store(false, SeqCst);}}