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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 22 additions and 7 deletions

View file

@ -227,7 +227,7 @@ impl History {
if let Some(mut entry) = entries.next_back() {
while let Some(prev_entry) = entries.next_back() {
if !prev_entry.suppress_grouping
&& entry.first_edit_at - prev_entry.last_edit_at <= self.group_interval
&& entry.first_edit_at - prev_entry.last_edit_at < self.group_interval
{
entry = prev_entry;
count += 1;