mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix test error
This commit is contained in:
parent
9e77563c99
commit
828e4a5ace
|
@ -28,18 +28,13 @@ func TestCreateAndFind(t *testing.T) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
found, entry, err := filer.FindEntry(fullpath)
|
entry, err := filer.FindEntry(fullpath)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("find entry: %v", err)
|
t.Errorf("find entry: %v", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if !found {
|
|
||||||
t.Errorf("Failed to find newly created file")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
if entry.FullPath != entry1.FullPath {
|
if entry.FullPath != entry1.FullPath {
|
||||||
t.Errorf("find wrong entry: %v", entry.FullPath)
|
t.Errorf("find wrong entry: %v", entry.FullPath)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue