diff --git a/crates/snowbound/src/undo.rs b/crates/snowbound/src/undo.rs index 2c5b5e82b7e185e049a38c733304ff660980b370..b98f10b2ce8e0fdae59cdb2926d31fea5a78e2ac 100644 --- a/crates/snowbound/src/undo.rs +++ b/crates/snowbound/src/undo.rs @@ -1338,7 +1338,7 @@ mod tests { } #[test] - fn contended_page_actions_keep_their_position_in_undo_and_redo() { + fn refused_page_actions_keep_their_position_in_undo_and_redo() { for redo in [false, true] { let mut timeline = Timeline::default(); let action = Action { @@ -1360,9 +1360,6 @@ mod tests { else { panic!("the current page has a pending action"); }; - let structure = Arc::new(async_lock::Mutex::new(())); - let changing = structure.try_lock_arc().unwrap(); - assert!(structure.try_lock_arc().is_none()); timeline.put_back((redo, at), action); let depth = if redo { [0, 1] } else { [1, 0] }; assert!( @@ -1370,8 +1367,6 @@ mod tests { "newer edit stays first" ); timeline.stepped(page(3), redo); - drop(changing); - let _changing = structure.try_lock_arc().unwrap(); let Some(Next::Action(action, at)) = timeline.next(redo, page(1), [0, 0], &here()) else { panic!("the refused action must remain in its original stack");