Skip to content

Commit

Permalink
fix failing test case (flyteorg#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
honnix authored Mar 16, 2020
1 parent 9641ccf commit a812e79
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/controller/nodes/subworkflow/subworkflow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ func Test_subworkflowHandler_HandleAbort(t *testing.T) {
nCtx.OnNodeID().Return("n1")
n := &coreMocks.ExecutableNode{}
swf.OnStartNode().Return(n)
nodeExec.OnAbortHandler(ctx, wf, n, "reason").Return(fmt.Errorf("err"))
swf.OnGetID().Return("swf")
nodeExec.OnAbortHandlerMatch(mock.Anything, mock.MatchedBy(func(wf v1alpha1.ExecutableWorkflow) bool {
return wf.GetID() == swf.GetID()
}), n, mock.Anything).Return(fmt.Errorf("err"))
assert.Error(t, s.HandleAbort(ctx, nCtx, wf, "x", "reason"))
})

Expand Down

0 comments on commit a812e79

Please sign in to comment.