Fix a test flake involving zeroed out group_intervals (#20328)

Release Notes:

- N/A
This commit is contained in:
Will Bradley
2024-11-07 09:17:43 -07:00
committed by GitHub
parent 454c9dc06d
commit de70852497
4 changed files with 22 additions and 7 deletions
+1
View File
@@ -608,6 +608,7 @@ fn test_history() {
fn test_finalize_last_transaction() {
let now = Instant::now();
let mut buffer = Buffer::new(0, BufferId::new(1).unwrap(), "123456".into());
buffer.history.group_interval = Duration::from_millis(1);
buffer.start_transaction_at(now);
buffer.edit([(2..4, "cd")]);