Skip to content

Commit

Permalink
Merge pull request #85 from jameszwang/ocm-13490
Browse files Browse the repository at this point in the history
OCM-13490 | test: Add wait time so that bastion instance status can be checked successfully.
  • Loading branch information
xueli181114 authored Jan 20, 2025
2 parents 65fadf6 + 98d1376 commit e5cc7b3
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 e5cc7b3

Please sign in to comment.