Skip to content

Commit 58f6285

Browse files
authored
Stop reporting interrupted tests (#11027)
1 parent 0e3e32d commit 58f6285

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/e2e/framework/framework.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import (
2525
"k8s.io/ingress-nginx/test/e2e/framework/httpexpect"
2626

2727
"github.com/onsi/ginkgo/v2"
28+
ginkgotypes "github.com/onsi/ginkgo/v2/types"
2829
"github.com/stretchr/testify/assert"
2930
appsv1 "k8s.io/api/apps/v1"
3031
v1 "k8s.io/api/core/v1"
@@ -178,7 +179,7 @@ func (f *Framework) AfterEach() {
178179
assert.Nil(ginkgo.GinkgoT(), err, "deleting IngressClass")
179180
}(f.KubeClientSet, f.IngressClass)
180181

181-
if !ginkgo.CurrentSpecReport().Failed() {
182+
if !ginkgo.CurrentSpecReport().Failed() || ginkgo.CurrentSpecReport().State.Is(ginkgotypes.SpecStateInterrupted) {
182183
return
183184
}
184185

0 commit comments

Comments
 (0)