Skip to content

Commit 41d57e1

Browse files
committed
Update test
This account for aws/aws-sdk-go#2037
1 parent c4e5e9d commit 41d57e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ecs-cli/modules/config/config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ func TestCredentialsWhenUsingEC2InstanceRole(t *testing.T) {
425425
}`
426426

427427
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
428-
if r.URL.Path == "/latest/meta-data/iam/security-credentials" {
428+
if r.URL.Path == "/latest/meta-data/iam/security-credentials/" {
429429
fmt.Fprintln(w, ec2InstanceRoleName)
430430
} else if r.URL.Path == "/latest/meta-data/iam/security-credentials/"+ec2InstanceRoleName {
431431
fmt.Fprintf(w, ec2Creds, "2014-12-16T01:51:37Z")

0 commit comments

Comments
 (0)