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 {