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 79b400e commit 28abfa6
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 @@ -66,7 +66,7 @@ func getAPIClient() (*api_client.APIClient, api_client.Configuration) {
cmpAPIClient.TokenExpiry = cmpDetails.ValidTill
cmpAPIClient.SetMetaFnAndVersion(nil, 0, func(ctx *context.Context, meta interface{}) {
// Initialise token handler
tokenExpiry := cmpAPIClient.TokenExpiry/1000 - 15
tokenExpiry := cmpAPIClient.TokenExpiry / 1000
token := cmpAPIClient.CMPToken
// Token is about to expire and get new
if tokenExpiry < time.Now().Unix() {
Expand Down

0 comments on commit 28abfa6

Please sign in to comment.