mirror of
https://github.com/rclone/rclone.git
synced 2025-01-13 20:38:12 +02:00
Fix TestListDirSorted eventual consistency listing problems
This commit is contained in:
parent
0faf82702b
commit
4d5b73df85
@ -916,11 +916,14 @@ func TestListDirSorted(t *testing.T) {
|
||||
fs.Config.Filter.MaxSize = -1
|
||||
}()
|
||||
|
||||
r.WriteObject("a.txt", "hello world", t1)
|
||||
r.WriteObject("zend.txt", "hello", t1)
|
||||
r.WriteObject("sub dir/hello world", "hello world", t1)
|
||||
r.WriteObject("sub dir/hello world2", "hello world", t1)
|
||||
r.WriteObject("sub dir/sub sub dir/hello world3", "hello world", t1)
|
||||
files := []fstest.Item{
|
||||
r.WriteObject("a.txt", "hello world", t1),
|
||||
r.WriteObject("zend.txt", "hello", t1),
|
||||
r.WriteObject("sub dir/hello world", "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 err error
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user