forked from TrueCloudLab/rclone
Fix TestListDirSorted eventual consistency listing problems
This commit is contained in:
parent
0faf82702b
commit
4d5b73df85
1 changed files with 8 additions and 5 deletions
|
@ -916,11 +916,14 @@ func TestListDirSorted(t *testing.T) {
|
||||||
fs.Config.Filter.MaxSize = -1
|
fs.Config.Filter.MaxSize = -1
|
||||||
}()
|
}()
|
||||||
|
|
||||||
r.WriteObject("a.txt", "hello world", t1)
|
files := []fstest.Item{
|
||||||
r.WriteObject("zend.txt", "hello", t1)
|
r.WriteObject("a.txt", "hello world", t1),
|
||||||
r.WriteObject("sub dir/hello world", "hello world", t1)
|
r.WriteObject("zend.txt", "hello", t1),
|
||||||
r.WriteObject("sub dir/hello world2", "hello world", t1)
|
r.WriteObject("sub dir/hello world", "hello world", t1),
|
||||||
r.WriteObject("sub dir/sub sub dir/hello world3", "hello world", t1)
|
r.WriteObject("sub dir/hello world2", "hello world", t1),
|
||||||
|
r.WriteObject("sub dir/sub sub dir/hello world3", "hello world", t1),
|
||||||
|
}
|
||||||
|
fstest.CheckItems(t, r.fremote, files...)
|
||||||
var items fs.DirEntries
|
var items fs.DirEntries
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue