Skip to content

Commit

Permalink
[QE] fix not catch error for oc login,crc-org#4101
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyLuLiu committed Jul 2, 2024
1 parent 926c78e commit 0aee073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/extended/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ func LoginToOcCluster(options []string) error {
ocLoginAsAdminCommand = ocLoginAsAdminCommand + " " + option
}

return ExecuteCommand(ocLoginAsAdminCommand)
return ExecuteCommandSucceedsOrFails(ocLoginAsAdminCommand, "succeeds")
}

// LoginToOcClusterSucceedsOrFails is a wrapper for LoginToOcCluster
Expand Down

0 comments on commit 0aee073

Please sign in to comment.