fix test cases after the change in the previous commit

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino 2024-05-10 15:58:07 +02:00
parent 62f5d4cb89
commit e7627bfcd3
No known key found for this signature in database
GPG key ID: 935D2952DEC4EECF

View file

@ -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)