We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e3e32d commit 58f6285Copy full SHA for 58f6285
test/e2e/framework/framework.go
@@ -25,6 +25,7 @@ import (
25
"k8s.io/ingress-nginx/test/e2e/framework/httpexpect"
26
27
"github.com/onsi/ginkgo/v2"
28
+ ginkgotypes "github.com/onsi/ginkgo/v2/types"
29
"github.com/stretchr/testify/assert"
30
appsv1 "k8s.io/api/apps/v1"
31
v1 "k8s.io/api/core/v1"
@@ -178,7 +179,7 @@ func (f *Framework) AfterEach() {
178
179
assert.Nil(ginkgo.GinkgoT(), err, "deleting IngressClass")
180
}(f.KubeClientSet, f.IngressClass)
181
- if !ginkgo.CurrentSpecReport().Failed() {
182
+ if !ginkgo.CurrentSpecReport().Failed() || ginkgo.CurrentSpecReport().State.Is(ginkgotypes.SpecStateInterrupted) {
183
return
184
}
185
0 commit comments