Remove hard-coded timeout in e2e tests

This commit is contained in:
Manuel Alejandro de Brito Fontes 2020-01-26 21:01:52 -03:00
parent d9983cb387
commit 68bfbd939b
10 changed files with 5 additions and 72 deletions

View file

@ -18,7 +18,6 @@ package loadbalance
import (
"strings"
"time"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
@ -26,10 +25,6 @@ import (
"k8s.io/ingress-nginx/test/e2e/framework"
)
const (
waitForLuaSync = 5 * time.Second
)
var _ = framework.IngressNginxDescribe("Load Balance - Configmap value", func() {
f := framework.NewDefaultFramework("lb-configmap")
@ -50,7 +45,6 @@ var _ = framework.IngressNginxDescribe("Load Balance - Configmap value", func()
func(server string) bool {
return strings.Contains(server, "server_name load-balance.com")
})
time.Sleep(waitForLuaSync)
algorithm, err := f.GetLbAlgorithm(framework.EchoService, 80)
Expect(err).Should(BeNil())

View file

@ -20,7 +20,6 @@ import (
"fmt"
"regexp"
"strings"
"time"
"github.com/parnurzeal/gorequest"
@ -47,7 +46,6 @@ var _ = framework.IngressNginxDescribe("Load Balance - EWMA", func() {
func(server string) bool {
return strings.Contains(server, "server_name load-balance.com")
})
time.Sleep(waitForLuaSync)
algorithm, err := f.GetLbAlgorithm(framework.EchoService, 80)
Expect(err).Should(BeNil())