mirror of
https://github.com/rclone/rclone.git
synced 2025-01-09 07:48:19 +01:00
fstests: allow Purge to fail with ErrorDirNotFound
This commit is contained in:
parent
b90e4a8769
commit
ced2616da5
@ -1793,7 +1793,9 @@ func Run(t *testing.T, opt *Opt) {
|
||||
|
||||
// Purge the folder
|
||||
err = operations.Purge(ctx, remote, "")
|
||||
require.NoError(t, err)
|
||||
if errors.Cause(err) != fs.ErrorDirNotFound {
|
||||
require.NoError(t, err)
|
||||
}
|
||||
purged = true
|
||||
fstest.CheckListing(t, remote, []fstest.Item{})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user