From d4f3dde804fefd85eca6e03c3c7a9a94fe94a203 Mon Sep 17 00:00:00 2001 From: songlh Date: Fri, 17 Dec 2021 16:03:46 -0500 Subject: [PATCH] time -> timer --- pkg/util/async/bounded_frequency_runner_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/util/async/bounded_frequency_runner_test.go b/pkg/util/async/bounded_frequency_runner_test.go index 9601d0c1694..83ceb95016d 100644 --- a/pkg/util/async/bounded_frequency_runner_test.go +++ b/pkg/util/async/bounded_frequency_runner_test.go @@ -279,7 +279,7 @@ func Test_BoundedFrequencyRunnerNoBurst(t *testing.T) { stop <- struct{}{} // 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 - <- time.updated + <- timer.updated } func Test_BoundedFrequencyRunnerBurst(t *testing.T) { @@ -363,7 +363,7 @@ func Test_BoundedFrequencyRunnerBurst(t *testing.T) { stop <- struct{}{} // 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 - <- time.updated + <- timer.updated } func Test_BoundedFrequencyRunnerRetryAfter(t *testing.T) { @@ -449,5 +449,5 @@ func Test_BoundedFrequencyRunnerRetryAfter(t *testing.T) { stop <- struct{}{} // 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 - <- time.updated + <- timer.updated }