By(fmt.Sprintf("Successfully validated that service %s in namespace %s exposes endpoints %v (%v elapsed)",serviceName,namespace,expectedEndpoints,time.Since(start)))
break
return
}else{
By(fmt.Sprintf("Unexpected number of endpoints: found %v, expected %v (ignoring for 1 second)",portsByIp,expectedEndpoints))
}
}else{
By(fmt.Sprintf("Failed to get endpoints: %v (ignoring for 1 second)",err))
}
}
time.Sleep(time.Second)
Logf("Unexpected number of endpoints: found %v, expected %v (%v elapsed, ignoring for 5s)",portsByIp,expectedEndpoints,time.Since(start))
}
}
By(fmt.Sprintf("successfully validated endpoints %v with on service %s/%s",expectedEndpoints,ns,serviceName))
Failf("Timed out waiting for service %s in namespace %s to expose endpoints %v (%v elapsed)",serviceName,namespace,expectedEndpoints,serviceStartTimeout)