Skip to content

Commit

Permalink
sleep a few seconds before returning from ProjectIDExecution
Browse files Browse the repository at this point in the history
  • Loading branch information
lantoli committed Oct 6, 2024
1 parent 5335957 commit ef2295f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/testutil/acc/shared_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"sync"
"testing"
"time"

"github.com/stretchr/testify/require"
)
Expand Down Expand Up @@ -47,6 +48,8 @@ func ProjectIDExecution(tb testing.TB) string {
sharedInfo.projectName = RandomProjectName()
tb.Logf("Creating execution project: %s\n", sharedInfo.projectName)
sharedInfo.projectID = createProject(tb, sharedInfo.projectName)
} else {
time.Sleep(10 * time.Second) // HELP-65223: sleep a few seconds so clusters are not created concurrently in the execution project
}

return sharedInfo.projectID
Expand Down

0 comments on commit ef2295f

Please sign in to comment.