forked from TrueCloudLab/rclone
fstests: allow Purge to fail with ErrorDirNotFound
This commit is contained in:
parent
b90e4a8769
commit
ced2616da5
1 changed files with 3 additions and 1 deletions
|
@ -1793,7 +1793,9 @@ func Run(t *testing.T, opt *Opt) {
|
||||||
|
|
||||||
// Purge the folder
|
// Purge the folder
|
||||||
err = operations.Purge(ctx, remote, "")
|
err = operations.Purge(ctx, remote, "")
|
||||||
require.NoError(t, err)
|
if errors.Cause(err) != fs.ErrorDirNotFound {
|
||||||
|
require.NoError(t, err)
|
||||||
|
}
|
||||||
purged = true
|
purged = true
|
||||||
fstest.CheckListing(t, remote, []fstest.Item{})
|
fstest.CheckListing(t, remote, []fstest.Item{})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue