Browse Source

fix: ut test error

pull/2761/head
zzq09494 3 years ago
parent
commit
ee5417a5b3
  1. 2
      weed/filer/leveldb/leveldb_store_test.go
  2. 2
      weed/filer/leveldb2/leveldb2_store_test.go
  3. 2
      weed/filer/leveldb3/leveldb3_store_test.go
  4. 2
      weed/filer/rocksdb/rocksdb_store_test.go

2
weed/filer/leveldb/leveldb_store_test.go

@ -31,7 +31,7 @@ func TestCreateAndFind(t *testing.T) {
}, },
} }
if err := testFiler.CreateEntry(ctx, entry1, false, false, nil); err != nil {
if err := testFiler.CreateEntry(ctx, entry1, false, false, nil,true); err != nil {
t.Errorf("create entry %v: %v", entry1.FullPath, err) t.Errorf("create entry %v: %v", entry1.FullPath, err)
return return
} }

2
weed/filer/leveldb2/leveldb2_store_test.go

@ -28,7 +28,7 @@ func TestCreateAndFind(t *testing.T) {
}, },
} }
if err := testFiler.CreateEntry(ctx, entry1, false, false, nil); err != nil {
if err := testFiler.CreateEntry(ctx, entry1, false, false, nil,true); err != nil {
t.Errorf("create entry %v: %v", entry1.FullPath, err) t.Errorf("create entry %v: %v", entry1.FullPath, err)
return return
} }

2
weed/filer/leveldb3/leveldb3_store_test.go

@ -28,7 +28,7 @@ func TestCreateAndFind(t *testing.T) {
}, },
} }
if err := testFiler.CreateEntry(ctx, entry1, false, false, nil); err != nil {
if err := testFiler.CreateEntry(ctx, entry1, false, false, nil,true); err != nil {
t.Errorf("create entry %v: %v", entry1.FullPath, err) t.Errorf("create entry %v: %v", entry1.FullPath, err)
return return
} }

2
weed/filer/rocksdb/rocksdb_store_test.go

@ -34,7 +34,7 @@ func TestCreateAndFind(t *testing.T) {
}, },
} }
if err := testFiler.CreateEntry(ctx, entry1, false, false, nil); err != nil {
if err := testFiler.CreateEntry(ctx, entry1, false, false, nil,true); err != nil {
t.Errorf("create entry %v: %v", entry1.FullPath, err) t.Errorf("create entry %v: %v", entry1.FullPath, err)
return return
} }

Loading…
Cancel
Save