Skip to content

Commit

Permalink
Stop reporting interrupted tests (#11027)
Browse files Browse the repository at this point in the history
  • Loading branch information
rikatz committed Feb 27, 2024
1 parent 0e3e32d commit 58f6285
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/e2e/framework/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
"k8s.io/ingress-nginx/test/e2e/framework/httpexpect"

"github.com/onsi/ginkgo/v2"
ginkgotypes "github.com/onsi/ginkgo/v2/types"
"github.com/stretchr/testify/assert"
appsv1 "k8s.io/api/apps/v1"
v1 "k8s.io/api/core/v1"
Expand Down Expand Up @@ -178,7 +179,7 @@ func (f *Framework) AfterEach() {
assert.Nil(ginkgo.GinkgoT(), err, "deleting IngressClass")
}(f.KubeClientSet, f.IngressClass)

if !ginkgo.CurrentSpecReport().Failed() {
if !ginkgo.CurrentSpecReport().Failed() || ginkgo.CurrentSpecReport().State.Is(ginkgotypes.SpecStateInterrupted) {
return
}

Expand Down

0 comments on commit 58f6285

Please sign in to comment.