mirror of
https://github.com/rclone/rclone.git
synced 2025-01-08 23:40:29 +01:00
fstests: Suggest that Purge on a nonexistent dir should return fs.ErrorDirNotFound
This commit is contained in:
parent
52247e9a9f
commit
63e4d2952b
@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user