mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-21 15:10:23 +00:00
fix test cases after the change in the previous commit
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
parent
62f5d4cb89
commit
e7627bfcd3
1 changed files with 1 additions and 1 deletions
|
@ -1726,7 +1726,7 @@ func TestSCPUploadFiledata(t *testing.T) {
|
|||
|
||||
transfer.Connection.AddTransfer(transfer)
|
||||
err = scpCommand.getUploadFileData(2, transfer)
|
||||
assert.True(t, errors.Is(err, os.ErrClosed))
|
||||
assert.ErrorContains(t, err, os.ErrClosed.Error())
|
||||
|
||||
err = os.Remove(testfile)
|
||||
assert.NoError(t, err)
|
||||
|
|
Loading…
Reference in a new issue