Skip to content

Commit

Permalink
include check for cache hit
Browse files Browse the repository at this point in the history
  • Loading branch information
lucix-aws committed Dec 7, 2023
1 parent 00ad4ed commit d298fa9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions service/s3/express_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,5 +297,14 @@ func TestS3Express_OperationCredentialOverride(t *testing.T) {
t.Errorf("creds for AKID1/SECRET1 are missing")
}

// repeat of 1st call, should be a cache hit
_, err = svc.GetObject(context.Background(), &GetObjectInput{
Bucket: aws.String("bucket--usw2-az1--x-s3"),
Key: aws.String("key"),
})
if err != nil {
t.Errorf("get object: %v", err)
}

createSessionClient.expectCalled(t, 2)
}

0 comments on commit d298fa9

Please sign in to comment.