Skip to content

Commit

Permalink
OCM-9769 | test: fix Add timeout after creating account-roles
Browse files Browse the repository at this point in the history
  • Loading branch information
AkashKanni committed Jul 22, 2024
1 parent 8569001 commit 054b45f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/utils/exec/rosacli/ocm_resource_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/json"
"fmt"
"strings"
"time"

. "github.com/openshift/rosa/tests/utils/log"
)
Expand Down Expand Up @@ -336,7 +337,9 @@ func (url UserRoleList) UserRole(prefix string, ocmAccountUsername string) (user
func (ors *ocmResourceService) CreateAccountRole(flags ...string) (bytes.Buffer, error) {
createAccountRole := ors.client.Runner
createAccountRole = createAccountRole.Cmd("create", "account-roles").CmdFlags(flags...)
return createAccountRole.Run()
AccountRoles, err := createAccountRole.Run()
time.Sleep(10 * time.Second)
return AccountRoles, err
}

// Pasrse the result of 'rosa list account-roles' to AccountRoleList struct
Expand Down

0 comments on commit 054b45f

Please sign in to comment.