Skip to content
This repository was archived by the owner on Jun 17, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions failure_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,21 @@ func TestInteractiveFailure(t *testing.T) {

w := workflow.New()
w.OnFailure = workflow.InteractiveFailure
w.AddSteps([]*workflow.Step{
&workflow.Step{
Label: "fail workflow",
Run: func(c workflow.Context) error {
return errors.New("generic error")
},
w.Start = &workflow.Step{
Label: "fail workflow",
Run: func(c workflow.Context) error {
return errors.New("generic error")
},
&workflow.Step{
Label: "succeed workflow",
Run: func(c workflow.Context) error {
testVar = true
return nil
DependsOn: []*workflow.Step{
&workflow.Step{
Label: "succeed workflow",
Run: func(c workflow.Context) error {
testVar = true
return nil
},
},
},
})
}

err := w.Run()
if err != nil {
Expand Down