Skip to content

Commit c9477d4

Browse files
committed
10 second sleep
1 parent 1edd749 commit c9477d4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/main_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"log"
1010
"os"
1111
"testing"
12+
"time"
1213

1314
"github.com/gruntwork-io/terratest/modules/terraform"
1415
"github.com/stretchr/testify/suite"
@@ -52,6 +53,10 @@ func (s *ECSFargateSuite) SetupSuite() {
5253

5354
// Run terraform init and apply
5455
terraform.InitAndApply(s.T(), s.terraformOptions)
56+
57+
// sleep for a few seconds to ensure resources are ready
58+
log.Println("Waiting for resources to be ready...")
59+
time.Sleep(10 * time.Second)
5560
}
5661

5762
// TearDownSuite is run once at the end of the test suite

0 commit comments

Comments
 (0)