From e8adc9acf314bbb0a50d1a4fa7fc09f233f15ccd Mon Sep 17 00:00:00 2001 From: Jerzy Szczepkowski Date: Thu, 8 Dec 2016 10:59:58 +0100 Subject: [PATCH] HPA e2e tests: fixed problem w/blocking channel. HPA e2e tests: fixed problem w/blocking channel. Resolves #38298. --- test/e2e/autoscaling_utils.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/e2e/autoscaling_utils.go b/test/e2e/autoscaling_utils.go index ce060acaf482..5dba4773e76c 100644 --- a/test/e2e/autoscaling_utils.go +++ b/test/e2e/autoscaling_utils.go @@ -298,9 +298,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.Namespace.Name, rc.name))