Skip to content

Commit

Permalink
Fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
nao1215 committed Feb 4, 2024
1 parent 6f0e184 commit 5ceee5b
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions app/interactor/s3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,20 @@ func TestS3ObjectsDeleter_DeleteS3Objects(t *testing.T) {

s3ObjectVersionLister := mock.S3ObjectVersionsLister(func(ctx context.Context, input *service.S3ObjectVersionsListerInput) (*service.S3ObjectVersionsListerOutput, error) {
return &service.S3ObjectVersionsListerOutput{
Objects: model.S3ObjectIdentifiers{},
Objects: model.S3ObjectIdentifiers{
{
S3Key: model.S3Key("object-key-A"),
VersionID: model.VersionID("version-id-A"),
},
{
S3Key: model.S3Key("object-key-B"),
VersionID: model.VersionID("version-id-B"),
},
{
S3Key: model.S3Key("object-key-C"),
VersionID: model.VersionID("version-id-C"),
},
},
}, nil
})

Expand Down Expand Up @@ -421,7 +434,20 @@ func TestS3ObjectsDeleter_DeleteS3Objects(t *testing.T) {

s3ObjectVersionLister := mock.S3ObjectVersionsLister(func(ctx context.Context, input *service.S3ObjectVersionsListerInput) (*service.S3ObjectVersionsListerOutput, error) {
return &service.S3ObjectVersionsListerOutput{
Objects: model.S3ObjectIdentifiers{},
Objects: model.S3ObjectIdentifiers{
{
S3Key: model.S3Key("object-key-A"),
VersionID: model.VersionID("version-id-A"),
},
{
S3Key: model.S3Key("object-key-B"),
VersionID: model.VersionID("version-id-B"),
},
{
S3Key: model.S3Key("object-key-C"),
VersionID: model.VersionID("version-id-C"),
},
},
}, nil
})

Expand Down

0 comments on commit 5ceee5b

Please sign in to comment.