Commit 2b070e17 authored by Jerzy Szczepkowski's avatar Jerzy Szczepkowski

HPA e2e tests: fixed waiting for service creation.

HPA e2e tests: fixed waiting for service creation. Fixes #32512.
parent 98c4c73c
...@@ -396,7 +396,7 @@ func runServiceAndWorkloadForResourceConsumer(c clientset.Interface, internalCli ...@@ -396,7 +396,7 @@ func runServiceAndWorkloadForResourceConsumer(c clientset.Interface, internalCli
} }
framework.ExpectNoError(framework.RunRC(controllerRcConfig)) framework.ExpectNoError(framework.RunRC(controllerRcConfig))
// Make sure endpoints are propagated. // Wait for endpoints to propagate for the controller service.
// TODO(piosz): replace sleep with endpoints watch. framework.ExpectNoError(framework.WaitForServiceEndpointsNum(
time.Sleep(10 * time.Second) c, ns, controllerName, 1, startServiceInterval, startServiceTimeout))
} }
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