Skip to content

Commit

Permalink
update atf
Browse files Browse the repository at this point in the history
  • Loading branch information
mahesh-hpe committed Nov 8, 2024
1 parent 28abfa6 commit 6be23e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/acceptance_test/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func getAPIClient() (*api_client.APIClient, api_client.Configuration) {
tokenExpiry := cmpAPIClient.TokenExpiry / 1000
token := cmpAPIClient.CMPToken
// Token is about to expire and get new
if tokenExpiry < time.Now().Unix() {
if tokenExpiry <= time.Now().Unix() {
cmpDetails, err := brokerClient.GetCMPDetails(*ctx)
if err != nil {
log.Printf("[ERROR] Unable to fetch token for CMP client: %s", err)
Expand Down

0 comments on commit 6be23e8

Please sign in to comment.