Skip to content

Commit d298fa9

Browse files
committed
include check for cache hit
1 parent 00ad4ed commit d298fa9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

service/s3/express_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,5 +297,14 @@ func TestS3Express_OperationCredentialOverride(t *testing.T) {
297297
t.Errorf("creds for AKID1/SECRET1 are missing")
298298
}
299299

300+
// repeat of 1st call, should be a cache hit
301+
_, err = svc.GetObject(context.Background(), &GetObjectInput{
302+
Bucket: aws.String("bucket--usw2-az1--x-s3"),
303+
Key: aws.String("key"),
304+
})
305+
if err != nil {
306+
t.Errorf("get object: %v", err)
307+
}
308+
300309
createSessionClient.expectCalled(t, 2)
301310
}

0 commit comments

Comments
 (0)