mirror of
https://github.com/rclone/rclone
synced 2024-11-12 10:50:08 +01: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.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__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