Skip to content

Commit 80ddf99

Browse files
committed
test: Add intentional panic test to verify Prow failure reporting
1 parent ea61c8a commit 80ddf99

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

test/integration/clusters_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -778,3 +778,11 @@ func TestClusterPost_WrongKind(t *testing.T) {
778778
Expect(ok).To(BeTrue())
779779
Expect(detail).To(ContainSubstring("kind must be 'Cluster'"))
780780
}
781+
782+
// TestClusterPanicFailure is a temporary test to verify that Prow correctly
783+
// reports integration test failures when a panic occurs during test execution.
784+
// This test should be removed after confirming the behavior.
785+
func TestClusterPanicFailure(t *testing.T) {
786+
_, _ = test.RegisterIntegration(t)
787+
panic("intentional panic to test Prow failure reporting")
788+
}

0 commit comments

Comments
 (0)