mirror of
https://github.com/rclone/rclone.git
synced 2025-01-03 12:59:32 +01:00
fstests: check for wrapped errors in ListR test
This commit is contained in:
parent
bab91e4402
commit
632f626f08
@ -1558,12 +1558,12 @@ func Run(t *testing.T, opt *Opt) {
|
|||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
if err != errFound && err != errTooMany {
|
if !errors.Is(err, errFound) && !errors.Is(err, errTooMany) {
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
}
|
}
|
||||||
if err != errTooMany {
|
if !errors.Is(err, errTooMany) {
|
||||||
assert.True(t, file1Found, "file1Root not found")
|
assert.True(t, file1Found, "file1Root %q not found", file1Root.Path)
|
||||||
assert.True(t, file2Found, "file2Root not found")
|
assert.True(t, file2Found, "file2Root %q not found", file2Root.Path)
|
||||||
} else {
|
} else {
|
||||||
t.Logf("Too many files to list - giving up")
|
t.Logf("Too many files to list - giving up")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user