Skip to content

Commit

Permalink
move delay to speedup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanBlackburn committed Apr 19, 2024
1 parent f28f971 commit 1054947
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/awsorgs/organization.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@ func (c Client) CreateAccount(
}

for {
time.Sleep(15 * time.Second)

requestId := *out.CreateAccountStatus.Id
currStatus, err := c.organizationClient.DescribeCreateAccountStatus(&organizations.DescribeCreateAccountStatusInput{
Expand All @@ -298,6 +297,8 @@ func (c Client) CreateAccount(
default:
return "", fmt.Errorf("unexpected state: %s", state)
}

time.Sleep(15 * time.Second)
}
}

Expand Down

0 comments on commit 1054947

Please sign in to comment.