Improve speed of e2e tests

This commit is contained in:
Manuel de Brito Fontes 2018-04-19 23:14:30 -03:00
parent 10fc2548b4
commit 42e0c0abf7
No known key found for this signature in database
GPG key ID: 786136016A8BA02A
7 changed files with 12 additions and 9 deletions

View file

@ -237,12 +237,12 @@ func (f *Framework) matchNginxConditions(name string, matcher func(cfg string) b
}
var pod *v1.Pod
Loop:
for _, p := range l.Items {
if strings.HasPrefix(p.GetName(), "nginx-ingress-controller") {
if isRunning, err := podRunningReady(&p); err == nil && isRunning {
pod = &p
break Loop
break
}
}
}