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
|
||||
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 a new issue