Merge pull request #113909 from cncal/fix_bounded_frequency_runner_unittest

fix wrong statement in unittest of BoundedFrequencyRunner
This commit is contained in:
Kubernetes Prow Robot 2022-12-10 12:21:41 -08:00 committed by GitHub
commit 39537ccc12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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{}{}