Skip to content

Commit

Permalink
Merge pull request #3096 from chrischdi/pr-deflake-vcsim
Browse files Browse the repository at this point in the history
🌱 test: allow retries creating vcsim
  • Loading branch information
k8s-ci-robot committed Jul 5, 2024
2 parents bd84534 + 89b66b5 commit 1d6d588
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/e2e/e2e_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion test/framework/vcsim/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d6d588

Please sign in to comment.