mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
time -> timer
This commit is contained in:
parent
a108393b8c
commit
d4f3dde804
@ -279,7 +279,7 @@ func Test_BoundedFrequencyRunnerNoBurst(t *testing.T) {
|
|||||||
stop <- struct{}{}
|
stop <- struct{}{}
|
||||||
// a message is sent to time.updated in func Stop() at the end of the child goroutine
|
// a message is sent to time.updated in func Stop() at the end of the child goroutine
|
||||||
// to terminate the child, a receive on time.updated is needed here
|
// to terminate the child, a receive on time.updated is needed here
|
||||||
<- time.updated
|
<- timer.updated
|
||||||
}
|
}
|
||||||
|
|
||||||
func Test_BoundedFrequencyRunnerBurst(t *testing.T) {
|
func Test_BoundedFrequencyRunnerBurst(t *testing.T) {
|
||||||
@ -363,7 +363,7 @@ func Test_BoundedFrequencyRunnerBurst(t *testing.T) {
|
|||||||
stop <- struct{}{}
|
stop <- struct{}{}
|
||||||
// a message is sent to time.updated in func Stop() at the end of the child goroutine
|
// a message is sent to time.updated in func Stop() at the end of the child goroutine
|
||||||
// to terminate the child, a receive on time.updated is needed here
|
// to terminate the child, a receive on time.updated is needed here
|
||||||
<- time.updated
|
<- timer.updated
|
||||||
}
|
}
|
||||||
|
|
||||||
func Test_BoundedFrequencyRunnerRetryAfter(t *testing.T) {
|
func Test_BoundedFrequencyRunnerRetryAfter(t *testing.T) {
|
||||||
@ -449,5 +449,5 @@ func Test_BoundedFrequencyRunnerRetryAfter(t *testing.T) {
|
|||||||
stop <- struct{}{}
|
stop <- struct{}{}
|
||||||
// a message is sent to time.updated in func Stop() at the end of the child goroutine
|
// a message is sent to time.updated in func Stop() at the end of the child goroutine
|
||||||
// to terminate the child, a receive on time.updated is needed here
|
// to terminate the child, a receive on time.updated is needed here
|
||||||
<- time.updated
|
<- timer.updated
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user