Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
Signed-off-by: shuangkun <tsk2013uestc@163.com>
  • Loading branch information
shuangkun committed Mar 19, 2024
1 parent b8514a7 commit 0571b10
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/e2e/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1829,10 +1829,10 @@ spec:
ExpectWorkflow(func(t *testing.T, metadata *metav1.ObjectMeta, status *wfv1.WorkflowStatus) {
workflowName = metadata.Name
assert.True(t, status.Fulfilled())
assert.Equal(t, v1alpha1.WorkflowSucceeded, status.Phase)
assert.Equal(t, wfv1.WorkflowSucceeded, status.Phase)
for _, node := range status.Nodes {
if node.Type == v1alpha1.NodeTypeRetry {
assert.Equal(t, v1alpha1.NodeSucceeded, node.Phase)
if node.Type == wfv1.NodeTypeRetry {
assert.Equal(t, wfv1.NodeSucceeded, node.Phase)
children = node.Children
}
}
Expand All @@ -1853,7 +1853,7 @@ spec:
return status.Name == "retries-with-hooks-and-artifact[1].print"
}, func(t *testing.T, status *wfv1.NodeStatus, pod *corev1.Pod) {
podName = pod.GetName()
assert.Equal(t, v1alpha1.NodeSucceeded, status.Phase)
assert.Equal(t, wfv1.NodeSucceeded, status.Phase)
})

s.Run("ContainerLogs", func() {
Expand Down

0 comments on commit 0571b10

Please sign in to comment.