Skip to content

Commit

Permalink
test: Fix TestDeletingRunningPod (argoproj#4996)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Collins <[email protected]>
  • Loading branch information
alexec committed Feb 2, 2021
1 parent 44a4f7e commit 61e8b96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/e2e/functional_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ func (s *FunctionalSuite) TestDeletingRunningPod() {
When().
SubmitWorkflow().
WaitForWorkflow(fixtures.ToBeRunning, "to be running").
Wait(10*time.Second). // be very sure the pod is actually running (not pending)
Exec("kubectl", []string{"-n", "argo", "delete", "pod", "-l", "workflows.argoproj.io/workflow"}, fixtures.OutputRegexp(`pod "sleepy-.*" deleted`)).
Exec("kubectl", []string{"-n", "argo", "wait", "pod", "-l", "workflows.argoproj.io/completed=false", "--for=condition=Ready"}, fixtures.OutputRegexp(`pod/sleepy-.* condition met`)).
Exec("kubectl", []string{"-n", "argo", "delete", "pod", "-l", "workflows.argoproj.io/workflow", "--grace-period=1"}, fixtures.OutputRegexp(`pod "sleepy-.*" deleted`)).
WaitForWorkflow().
Then().
ExpectWorkflow(func(t *testing.T, metadata *metav1.ObjectMeta, status *wfv1.WorkflowStatus) {
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/testdata/sleepy-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ spec:
image: argoproj/argosay:v2
args:
- sleep
- 30s
- 30s

0 comments on commit 61e8b96

Please sign in to comment.