Remove hard-coded timeout in e2e tests
This commit is contained in:
parent
d9983cb387
commit
68bfbd939b
10 changed files with 5 additions and 72 deletions
|
|
@ -19,7 +19,6 @@ package annotations
|
|||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
. "github.com/onsi/ginkgo"
|
||||
. "github.com/onsi/gomega"
|
||||
|
|
@ -45,8 +44,6 @@ var _ = framework.IngressNginxDescribe("Annotations - custom default-backend", f
|
|||
ing := framework.NewSingleIngress(host, "/", host, f.Namespace, "invalid", 80, annotations)
|
||||
f.EnsureIngress(ing)
|
||||
|
||||
time.Sleep(5 * time.Second)
|
||||
|
||||
f.WaitForNginxServer(host,
|
||||
func(server string) bool {
|
||||
return Expect(server).Should(ContainSubstring(fmt.Sprintf("server_name %v", host)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue