Skip to content

Commit

Permalink
fix: Add 'ToBeFailed'
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Behar <simbeh7@gmail.com>
  • Loading branch information
simster7 committed Mar 30, 2021
1 parent 5771c60 commit 3089d8a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/e2e/fixtures/when.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ var ToBeSucceeded Condition = func(wf *wfv1.Workflow) (bool, string) {
return wf.Status.Phase == wfv1.WorkflowSucceeded, "to be succeeded"
}

var ToBeFailed Condition = func(wf *wfv1.Workflow) (bool, string) {
return wf.Status.Phase == wfv1.WorkflowFailed, "to be failed"
}

// `ToBeDone` replaces `ToFinish` which also makes sure the workflow is both complete not pending archiving.
// This additional check is not needed for most use case, however in `AfterTest` we delete the workflow and this
// creates a lot of warning messages in the logs that are cause by misuse rather than actual problems.
Expand Down

0 comments on commit 3089d8a

Please sign in to comment.