Skip to content

Commit

Permalink
internal/backend: give backends more time to create files in test
Browse files Browse the repository at this point in the history
  • Loading branch information
fsouza committed May 6, 2020
1 parent 808a240 commit a730539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/backend/backend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func TestBucketCreateGetList(t *testing.T) {
}
timeBeforeCreation := time.Now().Truncate(time.Second) // we may lose precission
err = storage.CreateBucket(bucket.Name, bucket.VersioningEnabled)
timeAfterCreation := time.Now().Add(time.Microsecond)
timeAfterCreation := time.Now().Add(5 * time.Millisecond)
if reflect.TypeOf(storage) == reflect.TypeOf(&storageFS{}) && bucket.VersioningEnabled {
if err == nil {
t.Fatal("fs storage should not accept creating buckets with versioning, but it's not failing")
Expand Down

0 comments on commit a730539

Please sign in to comment.