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
|
|
@ -21,7 +21,6 @@ import (
|
|||
"fmt"
|
||||
"net"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/parnurzeal/gorequest"
|
||||
|
||||
|
|
@ -35,10 +34,6 @@ import (
|
|||
"k8s.io/ingress-nginx/test/e2e/framework"
|
||||
)
|
||||
|
||||
const (
|
||||
waitForLuaSync = 5 * time.Second
|
||||
)
|
||||
|
||||
var _ = framework.IngressNginxDescribe("TCP Feature", func() {
|
||||
f := framework.NewDefaultFramework("tcp")
|
||||
|
||||
|
|
@ -167,8 +162,6 @@ var _ = framework.IngressNginxDescribe("TCP Feature", func() {
|
|||
Update(config)
|
||||
Expect(err).NotTo(HaveOccurred(), "unexpected error updating configmap")
|
||||
|
||||
time.Sleep(waitForLuaSync)
|
||||
|
||||
// Validate that the generated nginx config contains the expected `proxy_upstream_name` value
|
||||
f.WaitForNginxConfiguration(
|
||||
func(cfg string) bool {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue