Skip to content

Commit

Permalink
HPA e2e tests: fixed problem w/blocking channel.
Browse files Browse the repository at this point in the history
HPA e2e tests: fixed problem w/blocking channel. Resolves kubernetes#38298.
  • Loading branch information
jszczepkowski committed Dec 8, 2016
1 parent 6b9a944 commit e94d2fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/e2e/autoscaling_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,9 @@ func (rc *ResourceConsumer) EnsureDesiredReplicas(desiredReplicas int, timeout t

func (rc *ResourceConsumer) CleanUp() {
By(fmt.Sprintf("Removing consuming RC %s", rc.name))
rc.stopCPU <- 0
rc.stopMem <- 0
rc.stopCustomMetric <- 0
close(rc.stopCPU)
close(rc.stopMem)
close(rc.stopCustomMetric)
// Wait some time to ensure all child goroutines are finished.
time.Sleep(10 * time.Second)
framework.ExpectNoError(framework.DeleteRCAndPods(rc.framework.ClientSet, rc.framework.InternalClientset, rc.framework.Namespace.Name, rc.name))
Expand Down

0 comments on commit e94d2fd

Please sign in to comment.