diff --git a/pkg/util/async/bounded_frequency_runner.go b/pkg/util/async/bounded_frequency_runner.go index 5a719dfaee6..e00b66df1b7 100644 --- a/pkg/util/async/bounded_frequency_runner.go +++ b/pkg/util/async/bounded_frequency_runner.go @@ -135,7 +135,7 @@ var _ timer = &realTimer{} // runs are "accumulated" over time, one per minInterval up to burstRuns total. // This can be used, for example, to mitigate the impact of expensive operations // being called in response to user-initiated operations. Run requests that -// would violate the minInterval are coallesced and run at the next opportunity. +// would violate the minInterval are coalesced and run at the next opportunity. // // The function will be run at least once per maxInterval. For example, this can // force periodic refreshes of state in the absence of anyone calling Run. diff --git a/pkg/util/async/bounded_frequency_runner_test.go b/pkg/util/async/bounded_frequency_runner_test.go index 333adabcf79..0060b43d916 100644 --- a/pkg/util/async/bounded_frequency_runner_test.go +++ b/pkg/util/async/bounded_frequency_runner_test.go @@ -273,7 +273,7 @@ func Test_BoundedFrequencyRunnerNoBurst(t *testing.T) { // Let minInterval pass timer.advance(999 * time.Millisecond) // rel=1000ms - waitForRun("fourth run", t, timer, obj) + waitForRun("fifth run", t, timer, obj) // Clean up. stop <- struct{}{}