mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 14:20:55 +03: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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user