Fix wait times in e2e tests

This commit is contained in:
Manuel Alejandro de Brito Fontes 2020-08-09 08:13:24 -04:00
parent 59a7f51cd4
commit 351248fabb
3 changed files with 5 additions and 3 deletions

View file

@ -213,6 +213,7 @@ func (f *Framework) WaitForNginxServer(name string, matcher func(cfg string) boo
func (f *Framework) WaitForNginxConfiguration(matcher func(cfg string) bool) {
err := wait.PollImmediate(Poll, DefaultTimeout, f.matchNginxConditions("", matcher))
assert.Nil(ginkgo.GinkgoT(), err, "waiting for nginx server condition/s")
Sleep(1 * time.Second)
}
// WaitForNginxCustomConfiguration waits until the nginx configuration given part (from, to) contains a particular configuration