@@ -41,7 +41,7 @@ func TestS3_Size(t *testing.T) {
41
41
"it should make a HEAD request on the object" : {
42
42
expectMock : func (t * testing.T , m * s3mock.MockS3Client ) {
43
43
m .EXPECT ().HeadObjectRequest (& s3.HeadObjectInput {
44
- Bucket : aws .String ("bucket" ), Key : aws .String ("/ key" ),
44
+ Bucket : aws .String ("bucket" ), Key : aws .String ("key" ),
45
45
}).Return (s3.HeadObjectRequest {Request : & aws.Request {
46
46
// Mandatory to create an empty request, otherwise it panics
47
47
HTTPRequest : new (http.Request ),
@@ -52,14 +52,14 @@ func TestS3_Size(t *testing.T) {
52
52
"it should retry if the first HEAD request return 404" : {
53
53
expectMock : func (t * testing.T , m * s3mock.MockS3Client ) {
54
54
m .EXPECT ().HeadObjectRequest (& s3.HeadObjectInput {
55
- Bucket : aws .String ("bucket" ), Key : aws .String ("/ key" ),
55
+ Bucket : aws .String ("bucket" ), Key : aws .String ("key" ),
56
56
}).Return (s3.HeadObjectRequest {Request : & aws.Request {
57
57
HTTPRequest : new (http.Request ),
58
58
Error : KeyNotFoundErr {},
59
59
}})
60
60
61
61
m .EXPECT ().HeadObjectRequest (& s3.HeadObjectInput {
62
- Bucket : aws .String ("bucket" ), Key : aws .String ("/ key" ),
62
+ Bucket : aws .String ("bucket" ), Key : aws .String ("key" ),
63
63
}).Return (s3.HeadObjectRequest {Request : & aws.Request {
64
64
// Mandatory to create an empty request, otherwise it panics
65
65
HTTPRequest : new (http.Request ),
@@ -70,7 +70,7 @@ func TestS3_Size(t *testing.T) {
70
70
"it should fail if the max amount of retried is passed" : {
71
71
expectMock : func (t * testing.T , m * s3mock.MockS3Client ) {
72
72
m .EXPECT ().HeadObjectRequest (& s3.HeadObjectInput {
73
- Bucket : aws .String ("bucket" ), Key : aws .String ("/ key" ),
73
+ Bucket : aws .String ("bucket" ), Key : aws .String ("key" ),
74
74
}).Return (s3.HeadObjectRequest {Request : & aws.Request {
75
75
HTTPRequest : new (http.Request ),
76
76
Error : KeyNotFoundErr {},
0 commit comments