Skip to content

Commit 476a196

Browse files
authored
chore: Sleeps a few seconds before returning from ProjectIDExecution (#2661)
* sleep a few seconds before returning from ProjectIDExecution * wait 5s * 20s
1 parent d33670f commit 476a196

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/testutil/acc/shared_resource.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"fmt"
55
"sync"
66
"testing"
7+
"time"
78

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

5255
return sharedInfo.projectID

0 commit comments

Comments
 (0)