Stop reporting interrupted tests (#11027)
This commit is contained in:
parent
0e3e32d0ae
commit
58f6285c70
1 changed files with 2 additions and 1 deletions
|
@ -25,6 +25,7 @@ import (
|
||||||
"k8s.io/ingress-nginx/test/e2e/framework/httpexpect"
|
"k8s.io/ingress-nginx/test/e2e/framework/httpexpect"
|
||||||
|
|
||||||
"github.com/onsi/ginkgo/v2"
|
"github.com/onsi/ginkgo/v2"
|
||||||
|
ginkgotypes "github.com/onsi/ginkgo/v2/types"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
appsv1 "k8s.io/api/apps/v1"
|
appsv1 "k8s.io/api/apps/v1"
|
||||||
v1 "k8s.io/api/core/v1"
|
v1 "k8s.io/api/core/v1"
|
||||||
|
@ -178,7 +179,7 @@ func (f *Framework) AfterEach() {
|
||||||
assert.Nil(ginkgo.GinkgoT(), err, "deleting IngressClass")
|
assert.Nil(ginkgo.GinkgoT(), err, "deleting IngressClass")
|
||||||
}(f.KubeClientSet, f.IngressClass)
|
}(f.KubeClientSet, f.IngressClass)
|
||||||
|
|
||||||
if !ginkgo.CurrentSpecReport().Failed() {
|
if !ginkgo.CurrentSpecReport().Failed() || ginkgo.CurrentSpecReport().State.Is(ginkgotypes.SpecStateInterrupted) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue