Commit e94d2fdc authored by Jerzy Szczepkowski's avatar Jerzy Szczepkowski

HPA e2e tests: fixed problem w/blocking channel.

HPA e2e tests: fixed problem w/blocking channel. Resolves #38298.
parent 6b9a9442
...@@ -299,9 +299,9 @@ func (rc *ResourceConsumer) EnsureDesiredReplicas(desiredReplicas int, timeout t ...@@ -299,9 +299,9 @@ func (rc *ResourceConsumer) EnsureDesiredReplicas(desiredReplicas int, timeout t
func (rc *ResourceConsumer) CleanUp() { func (rc *ResourceConsumer) CleanUp() {
By(fmt.Sprintf("Removing consuming RC %s", rc.name)) By(fmt.Sprintf("Removing consuming RC %s", rc.name))
rc.stopCPU <- 0 close(rc.stopCPU)
rc.stopMem <- 0 close(rc.stopMem)
rc.stopCustomMetric <- 0 close(rc.stopCustomMetric)
// Wait some time to ensure all child goroutines are finished. // Wait some time to ensure all child goroutines are finished.
time.Sleep(10 * time.Second) time.Sleep(10 * time.Second)
framework.ExpectNoError(framework.DeleteRCAndPods(rc.framework.ClientSet, rc.framework.InternalClientset, rc.framework.Namespace.Name, rc.name)) framework.ExpectNoError(framework.DeleteRCAndPods(rc.framework.ClientSet, rc.framework.InternalClientset, rc.framework.Namespace.Name, rc.name))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment