HPA e2e tests: fixed waiting for service creation.

HPA e2e tests: fixed waiting for service creation. Fixes #32512.
This commit is contained in:
Jerzy Szczepkowski 2016-12-09 12:18:32 +01:00
parent 98c4c73c71
commit 2b070e1724

View File

@ -396,7 +396,7 @@ func runServiceAndWorkloadForResourceConsumer(c clientset.Interface, internalCli
}
framework.ExpectNoError(framework.RunRC(controllerRcConfig))
// Make sure endpoints are propagated.
// TODO(piosz): replace sleep with endpoints watch.
time.Sleep(10 * time.Second)
// Wait for endpoints to propagate for the controller service.
framework.ExpectNoError(framework.WaitForServiceEndpointsNum(
c, ns, controllerName, 1, startServiceInterval, startServiceTimeout))
}