From 979ebee677aec73b8824dd74a31dddc866fa852b Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Thu, 25 Nov 2021 01:56:57 +0100 Subject: [PATCH] fixed mock s3 list recursive --- internal/s3/mock.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/s3/mock.go b/internal/s3/mock.go index 4dc911b..20beb27 100644 --- a/internal/s3/mock.go +++ b/internal/s3/mock.go @@ -64,9 +64,7 @@ func (m *mockS3) ListObjectsRecursive(ctx context.Context, id types.ID) ([]Objec for k, v := range m.objects { if k.Bucket == id.Bucket { if strings.HasPrefix(k.Key, id.Key) { - if k.Parent().Key == id.Key { - results = append(results, *mockObjToObject(v, k)) - } + results = append(results, *mockObjToObject(v, k)) } } }