Skip to content

Commit 3a9a539

Browse files
authored
Merge pull request #779 from ispeakc0de/probe-failure
(chore): Abort the experiment on probe failure when stopOnFailure is set to true
2 parents ed49413 + 967d657 commit 3a9a539

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/probe/probe.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ func parseCommand(templatedCommand string, resultDetails *types.ResultDetails) (
309309
// stopChaosEngine update the probe status and patch the chaosengine to stop state
310310
func stopChaosEngine(probe v1alpha1.ProbeAttributes, clients clients.ClientSets, chaosresult *types.ResultDetails, chaosDetails *types.ChaosDetails) error {
311311
// it will check for the error, It will detect the error if any error encountered in probe during chaos
312-
if err = checkForErrorInContinuousProbe(chaosresult, probe.Name, chaosDetails.Timeout, chaosDetails.Delay); err != nil && cerrors.GetErrorType(err) != cerrors.FailureTypeProbeTimeout {
312+
if err = checkForErrorInContinuousProbe(chaosresult, probe.Name, chaosDetails.Timeout, chaosDetails.Delay); err != nil && cerrors.GetErrorType(err) == cerrors.FailureTypeProbeTimeout {
313313
return err
314314
}
315315

0 commit comments

Comments
 (0)