fixing three goroutine leaks in bounded_frequency_runner_test.go

This commit is contained in:
songlh
2021-12-16 23:31:11 -05:00
parent 712745cb67
commit ed1823a6c2

View File

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