From 23c4621b36053992b3a4baf82c4a284518ce1406 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Thu, 3 Jun 2021 17:41:51 -0700 Subject: [PATCH] Reenable undo/redo in randomized concurrent edit test Currently this fails --- zed/src/editor/buffer.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zed/src/editor/buffer.rs b/zed/src/editor/buffer.rs index 0561821489d8744a0a5b3e4c01a102070fd175f8..3c4b7a0bd89891156cf02cc85cb3513b89717d4c 100644 --- a/zed/src/editor/buffer.rs +++ b/zed/src/editor/buffer.rs @@ -3108,9 +3108,9 @@ mod tests { mutation_count -= 1; } 51..=70 if mutation_count != 0 => { - // let ops = buffer.randomly_undo_redo(&mut rng); - // network.broadcast(replica_id, ops, &mut rng); - // mutation_count -= 1; + let ops = buffer.randomly_undo_redo(&mut rng); + network.broadcast(replica_id, ops, &mut rng); + mutation_count -= 1; } 71..=100 if network.has_unreceived(replica_id) => { let ops = network.receive(replica_id, &mut rng);