Skip to content

Commit

Permalink
internal/backend: fs storage generates the destination now
Browse files Browse the repository at this point in the history
  • Loading branch information
fsouza committed Jun 5, 2022
1 parent 230d2a3 commit fbeb0c2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions internal/backend/backend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit fbeb0c2

Please sign in to comment.