Skip to content

Commit

Permalink
feat(tests): E2E test for daemon retry
Browse files Browse the repository at this point in the history
Signed-off-by: MenD32 <[email protected]>
  • Loading branch information
MenD32 committed Oct 19, 2024
1 parent 72bd016 commit f5645ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion test/e2e/fixtures/when.go
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,11 @@ func (w *When) DeletePod(name string) *When {
w.t.Helper()
ctx := context.Background()
fmt.Printf("deleting pod %s\n", name)
err := w.kubeClient.CoreV1().Pods(Namespace).Delete(ctx, name, metav1.DeleteOptions{})
_, err := w.kubeClient.CoreV1().Pods(Namespace).Get(ctx, name, metav1.GetOptions{})
if err != nil {
w.t.Fatalf("pod %s not found", name)
}
err = w.kubeClient.CoreV1().Pods(Namespace).Delete(ctx, name, metav1.DeleteOptions{})
if err != nil {
w.t.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/retry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ spec:
container:
image: appropriate/curl:latest
command: ["/bin/sh", "-c"]
args: ["echo curl --silent -G http://{{inputs.parameters.server-ip}}:80/ && curl --silent -G http://{{inputs.parameters.server-ip}}:80/"]
args: ["echo curl --silent -G http://{{inputs.parameters.server-ip}}:80/ && curl --silent -G http://{{inputs.parameters.server-ip}}:80/ && sleep 10"]
`).
When().
SubmitWorkflow().
Expand Down

0 comments on commit f5645ee

Please sign in to comment.