Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1939 from thedadams/fix-project-flake
Browse files Browse the repository at this point in the history
Fix test flake when project doesn't support region
  • Loading branch information
thedadams authored Jul 17, 2023
2 parents bb13086 + b5e261b commit bc1f0c3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions integration/helper/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ func TempProject(t *testing.T, client client.WithWatch) *v1.ProjectInstance {
return obj.Name == project.Name
})

// Wait for status default region to be set...
WaitForObject(t, client.Watch, &v1.ProjectInstanceList{}, project, func(obj *v1.ProjectInstance) bool {
return obj.Status.DefaultRegion == obj.Spec.DefaultRegion
})

t.Cleanup(func() {
err = client.Delete(ctx, project)
if err != nil {
Expand Down

0 comments on commit bc1f0c3

Please sign in to comment.