Skip to content

Commit 3a2d934

Browse files
Fixing e2e test
Signed-off-by: Vishesh Tanksale <vtanksale@nvidia.com>
1 parent f2041ba commit 3a2d934

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/e2e/nim-operator_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import (
2525
"time"
2626

2727
. "github.com/onsi/ginkgo/v2"
28-
"github.com/onsi/ginkgo/v2/types"
2928
. "github.com/onsi/gomega"
3029

3130
helm "github.com/mittwald/go-helm-client"
@@ -111,7 +110,7 @@ var _ = Describe("NIM Operator", Ordered, func() {
111110
When("deploying NIMCache and NIMService", Ordered, func() {
112111
AfterEach(func() {
113112
// Clean up
114-
if CurrentSpecReport().State.Is(types.SpecStatePassed) {
113+
if !CurrentSpecReport().Failed() {
115114
cleanupNIMCRs()
116115
}
117116
})
@@ -162,7 +161,7 @@ var _ = Describe("NIM Operator", Ordered, func() {
162161

163162
AfterEach(func() {
164163
// Clean up
165-
if CurrentSpecReport().State.Is(types.SpecStatePassed) {
164+
if !CurrentSpecReport().Failed() {
166165
cleanupNIMCRs()
167166
}
168167
})

0 commit comments

Comments
 (0)