Skip to content

Commit

Permalink
add sleep to fix random test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Cadetg committed Jun 6, 2024
1 parent e7233f3 commit 7202108
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,11 @@ var _ = Describe("controller", Ordered, func() {
cmd = exec.Command("kubectl", "apply", "-f", "test/e2e/testdata/mysql-client-pod.yaml")
_, err = utils.Run(cmd)
ExpectWithOffset(1, err).NotTo(HaveOccurred())

// We need to wait here a bit because we changed the code to not retry on specific failures in the seed.
// As we can see this is problematic... before it would just have automatically retried and worked after the mysql
// pod was fully up. Now we need to sleep some arbitrary time to make sure the seed database is up
time.Sleep(10 * time.Second)
}

By("creating a DatabaseRequest resource")
Expand Down

0 comments on commit 7202108

Please sign in to comment.