fstests: Suggest that Purge on a nonexistent dir should return fs.ErrorDirNotFound

This commit is contained in:
Nick Craig-Wood 2020-08-19 18:03:42 +01:00
parent 52247e9a9f
commit 63e4d2952b
1 changed files with 3 additions and 0 deletions

View File

@ -1874,6 +1874,9 @@ func Run(t *testing.T, opt *Opt) {
if !isBucketBasedButNotRoot(remote) {
err = operations.Purge(ctx, remote, "")
assert.Error(t, err, "Expecting error after on second purge")
if errors.Cause(err) != fs.ErrorDirNotFound {
t.Log("Warning: this should produce fs.ErrorDirNotFound")
}
}
})