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

@ -24,6 +24,7 @@ import (
"os/exec"
"regexp"
"strings"
"time"
"github.com/onsi/ginkgo"
"github.com/stretchr/testify/assert"
@ -443,7 +444,7 @@ var _ = framework.DescribeAnnotation("auth-*", func() {
err := framework.WaitForEndpoints(f.KubeClientSet, framework.DefaultTimeout, framework.HTTPBinService, f.Namespace, 1)
assert.Nil(ginkgo.GinkgoT(), err)
framework.Sleep(1)
framework.Sleep(1 * time.Second)
e, err := f.KubeClientSet.CoreV1().Endpoints(f.Namespace).Get(context.TODO(), framework.HTTPBinService, metav1.GetOptions{})
assert.Nil(ginkgo.GinkgoT(), err)