mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
HPA e2e tests: fixed waiting for service creation.
HPA e2e tests: fixed waiting for service creation. Fixes #32512.
This commit is contained in:
parent
98c4c73c71
commit
2b070e1724
@ -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))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user