Skip to content

Commit

Permalink
OCM-13490 | test: Add wait time so that bastion instance status can b…
Browse files Browse the repository at this point in the history
…e checked successfully.
  • Loading branch information
jameszwang committed Jan 20, 2025
1 parent 65fadf6 commit 98d1376
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/aws/aws_client/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ func (client *AWSClient) LaunchInstance(subnetID string, imageID string, count i
instanceIDs = append(instanceIDs, *instance.InstanceId)
}
log.LogInfo("Waiting for below instances ready: %s", strings.Join(instanceIDs, ","))
// Wait 2 seconds for the asynchronous bastion instance to be created
time.Sleep(2 * time.Second)
_, err = client.WaitForInstancesRunning(instanceIDs, 10)
if err != nil {
log.LogError("Error happened for instance running: %s", err)
Expand Down

0 comments on commit 98d1376

Please sign in to comment.