Skip to content

Commit

Permalink
fix: occasionally test fail
Browse files Browse the repository at this point in the history
  • Loading branch information
sysulq committed May 6, 2024
1 parent 9181264 commit c4aaab0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/rolling/time_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func TestTimeWindow(t *testing.T) {
}
return result
})
if final != float64(numberBuckets) {
if final != float64(numberBuckets) && final != float64(numberBuckets-1) {
t.Fatal(final)
}

Expand Down

0 comments on commit c4aaab0

Please sign in to comment.