mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 23:00:55 +03:00
check rename source and target
This commit is contained in:
@@ -648,9 +648,7 @@ func TestResolvePathErrors(t *testing.T) {
|
||||
assert.EqualError(t, err, common.ErrGenericFailure.Error())
|
||||
}
|
||||
err = connection.Rename("", "")
|
||||
if assert.Error(t, err) {
|
||||
assert.EqualError(t, err, common.ErrGenericFailure.Error())
|
||||
}
|
||||
assert.ErrorIs(t, err, common.ErrOpUnsupported)
|
||||
err = connection.Symlink("", "")
|
||||
if assert.Error(t, err) {
|
||||
assert.EqualError(t, err, common.ErrGenericFailure.Error())
|
||||
|
||||
Reference in New Issue
Block a user