From 2e90d54e05b01ddcf201be5cf0ff792bdbbd6113 Mon Sep 17 00:00:00 2001 From: Aaron Todd Date: Wed, 25 Jan 2023 11:12:55 -0500 Subject: [PATCH] fix misleading timestamp value from tests and lint issues (#1994) Removes timestamp with single digit hour code to avoid confusion. Also fixes lint issues. References: * https://github.com/golang/go/issues/57912#issuecomment-1397445363 * GOSDK-2932 --- config/shared_test.go | 4 ++-- credentials/ec2rolecreds/provider_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/shared_test.go b/config/shared_test.go index ecadcbcbf52..b0ee123a161 100644 --- a/config/shared_test.go +++ b/config/shared_test.go @@ -14,7 +14,7 @@ const ecsResponse = `{ "SecretAccessKey": "ecs-secret-key", "Token": "token", "Expiration": "2100-01-01T00:00:00Z", - "LastUpdated": "2009-11-23T0:00:00Z" + "LastUpdated": "2009-11-23T00:00:00Z" }` const ec2MetadataResponse = `{ @@ -24,7 +24,7 @@ const ec2MetadataResponse = `{ "SecretAccessKey": "ec2-secret-key", "Token": "token", "Expiration": "2100-01-01T00:00:00Z", - "LastUpdated": "2009-11-23T0:00:00Z" + "LastUpdated": "2009-11-23T00:00:00Z" }` const assumeRoleRespMsg = ` diff --git a/credentials/ec2rolecreds/provider_test.go b/credentials/ec2rolecreds/provider_test.go index 31be7d6e365..362b0b75365 100644 --- a/credentials/ec2rolecreds/provider_test.go +++ b/credentials/ec2rolecreds/provider_test.go @@ -28,13 +28,13 @@ const credsRespTmpl = `{ "SecretAccessKey" : "secret", "Token" : "token", "Expiration" : "%s", - "LastUpdated" : "2009-11-23T0:00:00Z" + "LastUpdated" : "2009-11-23T00:00:00Z" }` const credsFailRespTmpl = `{ "Code": "ErrorCode", "Message": "ErrorMsg", - "LastUpdated": "2009-11-23T0:00:00Z" + "LastUpdated": "2009-11-23T00:00:00Z" }` type mockClient struct {