mirror of
https://github.com/rclone/rclone.git
synced 2024-11-27 02:34:21 +08:00
fs: fix TestListFormat on remotes which return 0 as dir size not -1
This commit is contained in:
parent
ed20fa5ee7
commit
7c71ee1a5b
|
@ -998,5 +998,5 @@ func TestListFormat(t *testing.T) {
|
||||||
list.SetDirSlash(true)
|
list.SetDirSlash(true)
|
||||||
list.SetSeparator("__SEP__")
|
list.SetSeparator("__SEP__")
|
||||||
assert.Equal(t, "1__SEP__a__SEP__"+items[0].ModTime().Format("2006-01-02 15:04:05"), fs.ListFormatted(&items[0], &list))
|
assert.Equal(t, "1__SEP__a__SEP__"+items[0].ModTime().Format("2006-01-02 15:04:05"), fs.ListFormatted(&items[0], &list))
|
||||||
assert.Equal(t, "-1__SEP__subdir/__SEP__"+items[1].ModTime().Format("2006-01-02 15:04:05"), fs.ListFormatted(&items[1], &list))
|
assert.Equal(t, fmt.Sprintf("%d", items[1].Size())+"__SEP__subdir/__SEP__"+items[1].ModTime().Format("2006-01-02 15:04:05"), fs.ListFormatted(&items[1], &list))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user