fstests: allow Purge to fail with ErrorDirNotFound

This commit is contained in:
Nick Craig-Wood 2019-07-27 16:17:45 +01:00
parent b90e4a8769
commit ced2616da5
1 changed files with 3 additions and 1 deletions

View File

@ -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{})