From ed1823a6c284d348a72dae8df228122fcb4d30d1 Mon Sep 17 00:00:00 2001 From: songlh Date: Thu, 16 Dec 2021 23:31:11 -0500 Subject: [PATCH] fixing three goroutine leaks in bounded_frequency_runner_test.go --- pkg/util/async/bounded_frequency_runner_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/util/async/bounded_frequency_runner_test.go b/pkg/util/async/bounded_frequency_runner_test.go index 1f9791af878..898ea016174 100644 --- a/pkg/util/async/bounded_frequency_runner_test.go +++ b/pkg/util/async/bounded_frequency_runner_test.go @@ -277,6 +277,7 @@ func Test_BoundedFrequencyRunnerNoBurst(t *testing.T) { // Clean up. stop <- struct{}{} + <- time.updated } func Test_BoundedFrequencyRunnerBurst(t *testing.T) { @@ -358,6 +359,7 @@ func Test_BoundedFrequencyRunnerBurst(t *testing.T) { // Clean up. stop <- struct{}{} + <- time.updated } func Test_BoundedFrequencyRunnerRetryAfter(t *testing.T) { @@ -441,4 +443,5 @@ func Test_BoundedFrequencyRunnerRetryAfter(t *testing.T) { // Clean up. stop <- struct{}{} + <- time.updated }