[Federation][init-06] Check for the availability of federation API server's service loadbalancer address before waiting.

This speeds up the tests. Otherwise tests end up unnecessarily waiting for the
poll interval/duration which is 5 seconds right now.
This commit is contained in:
Madhusudan.C.S
2016-10-29 18:15:11 -07:00
parent b0022fcd7b
commit caef02cf43
2 changed files with 15 additions and 1 deletions

View File

@@ -242,7 +242,7 @@ func waitForLoadBalancerAddress(clientset *client.Clientset, svc *api.Service) (
ips := []string{}
hostnames := []string{}
err := wait.PollInfinite(lbAddrRetryInterval, func() (bool, error) {
err := wait.PollImmediateInfinite(lbAddrRetryInterval, func() (bool, error) {
pollSvc, err := clientset.Core().Services(svc.Namespace).Get(svc.Name)
if err != nil {
return false, nil