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

This commit is contained in:
Jean-Philippe Quéméner
2025-05-16 13:47:09 +02:00
committed by GitHub
parent b886093fe6
commit 648e0bc660
+2 -1
View File
@@ -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) {