Skip to content

Commit

Permalink
fix: Flaky test about lifecycle hooks. Fixes #10897 (#10898)
Browse files Browse the repository at this point in the history
Signed-off-by: GeunSam2 <rootiron96@gmail.com>
  • Loading branch information
GeunSam2 authored Apr 13, 2023
1 parent ed4b966 commit 12f4659
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions test/e2e/hooks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ spec:
- name: argosay
container:
image: argoproj/argosay:v2
command: ["/argosay"]
command: ["/bin/sh", "-c"]
args: ["/bin/sleep 1; /argosay"]
`).When().
SubmitWorkflow().
WaitForWorkflow(fixtures.ToBeSucceeded).
Expand Down Expand Up @@ -88,12 +89,14 @@ spec:
- name: argosay
container:
image: argoproj/argosay:v2
command: ["/argosay", "sleep 5", "exit 1"]
command: ["/bin/sh", "-c"]
args: ["/bin/sleep 1; /argosay; exit 1"]
- name: hook
container:
image: argoproj/argosay:v2
command: ["/argosay"]
command: ["/bin/sh", "-c"]
args: ["/bin/sleep 1; /argosay"]
`).When().
SubmitWorkflow().
WaitForWorkflow(fixtures.ToBeFailed).
Expand Down Expand Up @@ -143,7 +146,8 @@ spec:
- name: argosay
container:
image: argoproj/argosay:v2
command: ["/argosay"]
command: ["/bin/sh", "-c"]
args: ["/bin/sleep 1; /argosay"]
`).When().
SubmitWorkflow().
WaitForWorkflow(fixtures.ToBeSucceeded).
Expand Down Expand Up @@ -192,11 +196,13 @@ spec:
- name: argosay
container:
image: argoproj/argosay:v2
command: ["/argosay", "sleep 5", "exit 1"]
command: ["/bin/sh", "-c"]
args: ["/bin/sleep 1; /argosay; exit 1"]
- name: hook
container:
image: argoproj/argosay:v2
command: ["/argosay"]
command: ["/bin/sh", "-c"]
args: ["/bin/sleep 1; /argosay"]
`).When().
SubmitWorkflow().
WaitForWorkflow(fixtures.ToBeFailed).
Expand Down Expand Up @@ -248,7 +254,8 @@ spec:
- name: argosay
container:
image: argoproj/argosay:v2
command: ["/argosay"]
command: ["/bin/sh", "-c"]
args: ["/bin/sleep 1; /argosay"]
`).When().
SubmitWorkflow().
WaitForWorkflow(fixtures.ToBeSucceeded).
Expand Down Expand Up @@ -298,11 +305,13 @@ spec:
- name: argosay
container:
image: argoproj/argosay:v2
command: ["/argosay", "sleep 5", "exit 1"]
command: ["/bin/sh", "-c"]
args: ["/bin/sleep 1; /argosay; exit 1"]
- name: hook
container:
image: argoproj/argosay:v2
command: ["/argosay"]
command: ["/bin/sh", "-c"]
args: ["/bin/sleep 1; /argosay"]
`).When().
SubmitWorkflow().
WaitForWorkflow(fixtures.ToBeFailed).
Expand Down

0 comments on commit 12f4659

Please sign in to comment.