mirror of
https://github.com/rclone/rclone
synced 2024-11-12 10:50:08 +01:00
lsf: fix integration tests
This commit is contained in:
parent
6d333da69f
commit
712e6a8085
@ -554,7 +554,7 @@ func (o *Object) Size() int64 {
|
||||
// Hash returns the selected checksum of the file
|
||||
// If no checksum is available it returns ""
|
||||
func (o *Object) Hash(hash fs.HashType) (string, error) {
|
||||
return "", nil
|
||||
return "", fs.ErrHashUnsupported
|
||||
}
|
||||
|
||||
// UnWrap returns the wrapped Object
|
||||
|
@ -1011,7 +1011,7 @@ func TestListFormat(t *testing.T) {
|
||||
list.SetOutput(nil)
|
||||
list.AddHash(test.ht)
|
||||
got := fs.ListFormatted(&items[0], &list)
|
||||
if got != "UNSUPPORTED" {
|
||||
if got != "UNSUPPORTED" && got != "" {
|
||||
assert.Equal(t, test.want, got)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user