mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 02:41:25 +00:00
Merge pull request #113909 from cncal/fix_bounded_frequency_runner_unittest
fix wrong statement in unittest of BoundedFrequencyRunner
This commit is contained in:
commit
39537ccc12
@ -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.
|
||||
|
@ -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{}{}
|
||||
|
Loading…
Reference in New Issue
Block a user