Skip to content

Commit 78e22ac

Browse files
committed
fix misleading timestamp value from tests and lint issues
Removes timestamp with single digit hour code to avoid confusion. Also fixes lint issues. References: * golang/go#57912 (comment) * GOSDK-2932
1 parent f95afa9 commit 78e22ac

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

config/shared_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const ecsResponse = `{
1414
"SecretAccessKey": "ecs-secret-key",
1515
"Token": "token",
1616
"Expiration": "2100-01-01T00:00:00Z",
17-
"LastUpdated": "2009-11-23T0:00:00Z"
17+
"LastUpdated": "2009-11-23T00:00:00Z"
1818
}`
1919

2020
const ec2MetadataResponse = `{
@@ -24,7 +24,7 @@ const ec2MetadataResponse = `{
2424
"SecretAccessKey": "ec2-secret-key",
2525
"Token": "token",
2626
"Expiration": "2100-01-01T00:00:00Z",
27-
"LastUpdated": "2009-11-23T0:00:00Z"
27+
"LastUpdated": "2009-11-23T00:00:00Z"
2828
}`
2929

3030
const assumeRoleRespMsg = `

credentials/ec2rolecreds/provider_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ const credsRespTmpl = `{
2828
"SecretAccessKey" : "secret",
2929
"Token" : "token",
3030
"Expiration" : "%s",
31-
"LastUpdated" : "2009-11-23T0:00:00Z"
31+
"LastUpdated" : "2009-11-23T00:00:00Z"
3232
}`
3333

3434
const credsFailRespTmpl = `{
3535
"Code": "ErrorCode",
3636
"Message": "ErrorMsg",
37-
"LastUpdated": "2009-11-23T0:00:00Z"
37+
"LastUpdated": "2009-11-23T00:00:00Z"
3838
}`
3939

4040
type mockClient struct {

0 commit comments

Comments
 (0)