Skip to content

Commit

Permalink
fix: Update more getnodebyname calls
Browse files Browse the repository at this point in the history
Signed-off-by: J.P. Zivalich <jp@pipekit.io>
  • Loading branch information
JPZ13 committed Jul 4, 2023
1 parent 45b1786 commit 02a7048
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions workflow/controller/operator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8140,7 +8140,8 @@ func TestOperatorRetryExpressionError(t *testing.T) {
woc.operate(ctx)

assert.Equal(t, wfv1.WorkflowRunning, woc.wf.Status.Phase)
retryNode := woc.wf.GetNodeByName("retry-script-9z9pv[1].retry")
retryNode, err := woc.wf.GetNodeByName("retry-script-9z9pv[1].retry")
assert.NoError(t, err)
assert.Equal(t, wfv1.NodeRunning, retryNode.Phase)
assert.Equal(t, 3, len(retryNode.Children))
}
Expand Down Expand Up @@ -8308,7 +8309,8 @@ func TestOperatorRetryExpressionErrorNoExpr(t *testing.T) {
woc.operate(ctx)

assert.Equal(t, wfv1.WorkflowFailed, woc.wf.Status.Phase)
retryNode := woc.wf.GetNodeByName("retry-script-9z9pv[1].retry")
retryNode, err := woc.wf.GetNodeByName("retry-script-9z9pv[1].retry")
assert.NoError(t, err)
assert.Equal(t, wfv1.NodeError, retryNode.Phase)
assert.Equal(t, 2, len(retryNode.Children))
assert.Equal(t, "Error (exit code 1)", retryNode.Message)
Expand Down

0 comments on commit 02a7048

Please sign in to comment.