fixing three goroutine leaks in bounded_frequency_runner_test.go
This commit is contained in:
@@ -277,6 +277,7 @@ func Test_BoundedFrequencyRunnerNoBurst(t *testing.T) {
|
|||||||
|
|
||||||
// Clean up.
|
// Clean up.
|
||||||
stop <- struct{}{}
|
stop <- struct{}{}
|
||||||
|
<- time.updated
|
||||||
}
|
}
|
||||||
|
|
||||||
func Test_BoundedFrequencyRunnerBurst(t *testing.T) {
|
func Test_BoundedFrequencyRunnerBurst(t *testing.T) {
|
||||||
@@ -358,6 +359,7 @@ func Test_BoundedFrequencyRunnerBurst(t *testing.T) {
|
|||||||
|
|
||||||
// Clean up.
|
// Clean up.
|
||||||
stop <- struct{}{}
|
stop <- struct{}{}
|
||||||
|
<- time.updated
|
||||||
}
|
}
|
||||||
|
|
||||||
func Test_BoundedFrequencyRunnerRetryAfter(t *testing.T) {
|
func Test_BoundedFrequencyRunnerRetryAfter(t *testing.T) {
|
||||||
@@ -441,4 +443,5 @@ func Test_BoundedFrequencyRunnerRetryAfter(t *testing.T) {
|
|||||||
|
|
||||||
// Clean up.
|
// Clean up.
|
||||||
stop <- struct{}{}
|
stop <- struct{}{}
|
||||||
|
<- time.updated
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user