Skip to content

Commit

Permalink
chore: Fix flaky test in functional_test.go (argoproj#11060)
Browse files Browse the repository at this point in the history
Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
  • Loading branch information
terrytangyuan committed May 10, 2023
1 parent 992773f commit 782a746
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/e2e/functional_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -730,11 +730,8 @@ spec:
`).
When().
SubmitWorkflow().
WaitForWorkflow(10*time.Second).
WaitForWorkflow(fixtures.ToBeFailed).
Then().
ExpectWorkflow(func(t *testing.T, md *metav1.ObjectMeta, status *wfv1.WorkflowStatus) {
assert.Equal(t, wfv1.WorkflowFailed, status.Phase)
}).
ExpectWorkflowNode(wfv1.FailedPodNode, func(t *testing.T, n *wfv1.NodeStatus, p *apiv1.Pod) {
assert.Equal(t, *p.Spec.ActiveDeadlineSeconds, int64(5))
})
Expand Down

0 comments on commit 782a746

Please sign in to comment.