Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RikuVirtanen committed Sep 14, 2022
1 parent 6f6c3b5 commit b99fcfc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void UploadFiles_TestThrowsWithWrongPort()
connection.Port = 51651;

var ex = Assert.Throws<Exception>(() => SFTP.UploadFiles(_source, _destination, connection, _options, _info, new CancellationToken()));
Assert.AreEqual(ex.Message, "SFTP transfer failed: Unable to establish the socket: No connection could be made because the target machine actively refused it.");
Assert.That(ex.Message.StartsWith("SFTP transfer failed: Unable to establish the socket:"));
}

[Test]
Expand All @@ -51,7 +51,7 @@ public void UploadFiles_TestThrowsWithWrongAddress()
connection.Address = "local";

var ex = Assert.Throws<Exception>(() => SFTP.UploadFiles(_source, _destination, connection, _options, _info, new CancellationToken()));
Assert.AreEqual(ex.Message, "SFTP transfer failed: Unable to establish the socket: No such host is known.");
Assert.That(ex.Message.StartsWith("SFTP transfer failed: Unable to establish the socket:"));
}

[Test]
Expand Down

0 comments on commit b99fcfc

Please sign in to comment.