Skip to content

Commit

Permalink
Fail test immediately if chaos cannot be created
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszcl committed Jun 20, 2024
1 parent 0c25662 commit b7d2d1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integration-tests/testsetups/ocr.go
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,7 @@ func (l ocrTestChaosListener) OnChaosCreated(_ k8schaos.Chaos) {

func (l ocrTestChaosListener) OnChaosCreationFailed(chaos k8schaos.Chaos, reason error) {
// Fail the test if chaos creation fails during chaos simulation
require.Fail(l.t, "Error creating chaos simulation", reason.Error(), chaos)
require.FailNow(l.t, "Error creating chaos simulation", reason.Error(), chaos)
}

func (l ocrTestChaosListener) OnChaosStarted(_ k8schaos.Chaos) {
Expand Down

0 comments on commit b7d2d1f

Please sign in to comment.