We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 026fcb6 commit 167cfc9Copy full SHA for 167cfc9
1 file changed
test/e2e/setup_test.go
@@ -268,7 +268,7 @@ func testWrapper(test func()) func() {
268
269
ginkgo.AfterAll(func() {
270
// Only cleanup if the test succeeded
271
- if !ginkgo.CurrentSpecReport().Failed() {
+ if !(ginkgo.CurrentSpecReport().Failed() && keepClusterOnFailure) {
272
testutils.DeleteObjects(testConfig, rbacObjects, nsName)
273
testutils.DeleteObjects(testConfig, serviceObjects, nsName)
274
testutils.DeleteObjects(testConfig, serviceAccountObjects, nsName)
0 commit comments