fix(util): flaky debouncer test (#105541)
This commit is contained in:
1 parent
b886093fe6
commit
648e0bc660
1 file changed
+2
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user