Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Xuhui zhang <[email protected]>
  • Loading branch information
zxh326 committed Dec 9, 2024
1 parent 0af6441 commit 6aa7149
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,11 +336,12 @@ var _ = Describe("controller", Ordered, func() {
cmd = exec.Command("kubectl", "wait", "pod/"+expectWorkerName,
"--for", "condition=Ready",
"--namespace", namespace,
"--timeout", "2m",
"--timeout", "1m",
)
_, err = utils.Run(cmd)
ExpectWithOffset(1, err).NotTo(HaveOccurred())

if err != nil {
return fmt.Errorf("wait worker pod failed, %+v", err)
}
return nil
}
Eventually(verifyWorkerCreated, time.Minute, time.Second).Should(Succeed())
Expand Down

0 comments on commit 6aa7149

Please sign in to comment.