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)
|
transfer.Connection.AddTransfer(transfer)
|
||||||
err = scpCommand.getUploadFileData(2, 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)
|
err = os.Remove(testfile)
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
|
|
Loading…
Reference in a new issue