From fbeb0c2d8aa1b941d9d5e0655ca71435ae382a0f Mon Sep 17 00:00:00 2001 From: francisco souza <108725+fsouza@users.noreply.github.com> Date: Fri, 3 Jun 2022 23:24:17 -0400 Subject: [PATCH] internal/backend: fs storage generates the destination now --- internal/backend/backend_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/internal/backend/backend_test.go b/internal/backend/backend_test.go index 6991b96361..bc9113087f 100644 --- a/internal/backend/backend_test.go +++ b/internal/backend/backend_test.go @@ -79,10 +79,7 @@ func uploadAndCompare(t *testing.T, storage Storage, obj Object) int64 { noError(t, err) activeObj, err := storage.GetObject(obj.BucketName, obj.Name) noError(t, err) - if isFSStorage && activeObj.Generation != 0 { - t.Errorf("FS should leave generation empty, as it does not persist it. Value: %d", activeObj.Generation) - } - if !isFSStorage && activeObj.Generation == 0 { + if activeObj.Generation == 0 { t.Errorf("generation is empty, but we expect a unique int") } if err := compareObjects(activeObj, obj); err != nil {