Fix e2e test flakes
This commit is contained in:
parent
bcdd975025
commit
c2550930b1
6 changed files with 57 additions and 40 deletions
|
|
@ -24,6 +24,7 @@ import (
|
|||
. "github.com/onsi/gomega"
|
||||
"github.com/parnurzeal/gorequest"
|
||||
appsv1 "k8s.io/api/apps/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
|
||||
"k8s.io/ingress-nginx/test/e2e/framework"
|
||||
)
|
||||
|
|
@ -141,6 +142,9 @@ var _ = framework.IngressNginxDescribe("Ingress class", func() {
|
|||
Expect(errs).To(BeNil())
|
||||
Expect(resp.StatusCode).Should(Equal(http.StatusOK))
|
||||
|
||||
ing, err := f.KubeClientSet.NetworkingV1beta1().Ingresses(f.Namespace).Get(host, metav1.GetOptions{})
|
||||
Expect(err).To(BeNil())
|
||||
|
||||
delete(ing.Annotations, "kubernetes.io/ingress.class")
|
||||
f.EnsureIngress(ing)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue