fstests: Suggest that Purge on a nonexistent dir should return fs.ErrorDirNotFound
This commit is contained in:
parent
52247e9a9f
commit
63e4d2952b
1 changed files with 3 additions and 0 deletions
|
@ -1874,6 +1874,9 @@ func Run(t *testing.T, opt *Opt) {
|
||||||
if !isBucketBasedButNotRoot(remote) {
|
if !isBucketBasedButNotRoot(remote) {
|
||||||
err = operations.Purge(ctx, remote, "")
|
err = operations.Purge(ctx, remote, "")
|
||||||
assert.Error(t, err, "Expecting error after on second purge")
|
assert.Error(t, err, "Expecting error after on second purge")
|
||||||
|
if errors.Cause(err) != fs.ErrorDirNotFound {
|
||||||
|
t.Log("Warning: this should produce fs.ErrorDirNotFound")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue