fix: ut test error

This commit is contained in:
zzq09494 2022-03-17 11:16:46 +08:00
parent 81cce4b4c3
commit ee5417a5b3
4 changed files with 4 additions and 4 deletions

View file

@ -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
} }

View file

@ -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
} }

View file

@ -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
} }

View file

@ -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
} }