fix(util): flaky debouncer test (#105541)

pull/105531/head^2
Jean-Philippe Quéméner 4 days ago committed by GitHub
parent b886093fe6
commit 648e0bc660
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      pkg/util/debouncer/debouncer_test.go

@ -83,7 +83,8 @@ func TestDebouncer(t *testing.T) {
}
}
require.WithinDuration(t, start.Add(time.Millisecond*500), clockMock.Now(), time.Millisecond*100)
// Make sure that the execution happened after the maxTimeout of 500ms, but before the next MaxTimeout.
require.WithinDuration(t, start.Add(time.Millisecond*500), clockMock.Now(), time.Millisecond*499)
})
t.Run("should handle buffer full", func(t *testing.T) {

Loading…
Cancel
Save