From 89b66b59c1f5231023a53b616f4da2400af942df Mon Sep 17 00:00:00 2001 From: Christian Schlotter Date: Fri, 5 Jul 2024 13:36:16 +0200 Subject: [PATCH] test: allow retries creating vcsim --- test/e2e/e2e_suite_test.go | 2 +- test/framework/vcsim/server.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/e2e_suite_test.go b/test/e2e/e2e_suite_test.go index 8a0fa6326a..45cc506fa1 100644 --- a/test/e2e/e2e_suite_test.go +++ b/test/e2e/e2e_suite_test.go @@ -212,7 +212,7 @@ var _ = SynchronizedBeforeSuite(func() []byte { Byf("Creating a vcsim server") Eventually(func() error { return vspherevcsim.Create(ctx, bootstrapClusterProxy.GetClient()) - }, 30*time.Second, 3*time.Second).ShouldNot(HaveOccurred(), "Failed to create VCenterSimulator") + }, time.Minute, 3*time.Second).ShouldNot(HaveOccurred(), "Failed to create VCenterSimulator") } By("Getting AddressClaim labels") diff --git a/test/framework/vcsim/server.go b/test/framework/vcsim/server.go index 4876b861db..b53eec646c 100644 --- a/test/framework/vcsim/server.go +++ b/test/framework/vcsim/server.go @@ -68,7 +68,7 @@ func Get(ctx context.Context, c client.Client) (*vcsimv1.VCenterSimulator, error var retryError error // Wait for the Server to report an address. - _ = wait.PollUntilContextTimeout(ctx, time.Second, time.Second*30, true, func(ctx context.Context) (done bool, err error) { + _ = wait.PollUntilContextTimeout(ctx, time.Second, time.Second*5, true, func(ctx context.Context) (done bool, err error) { if err := c.Get(ctx, client.ObjectKeyFromObject(vcsim), vcsim); err != nil { retryError = errors.Wrap(err, "getting VCenterSimulator") return false, nil