mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-10-19 23:30:23 +08:00
Changed the tests for Permission Denied to use /root, otherwise it caused Not Found.
This commit is contained in:
@@ -48,7 +48,7 @@ namespace Renci.SshNet.Tests.SftpClientTests
|
||||
{
|
||||
sftp.Connect();
|
||||
|
||||
var files = sftp.ListDirectory("/etc/audit");
|
||||
var files = sftp.ListDirectory("/root");
|
||||
foreach (var file in files)
|
||||
{
|
||||
Debug.WriteLine(file.FullName);
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace Renci.SshNet.Tests.SftpClientTests
|
||||
sftp.Connect();
|
||||
|
||||
string uploadedFileName = Path.GetTempFileName();
|
||||
string remoteFileName = "/etc/audit/ddd";
|
||||
string remoteFileName = "/root/1";
|
||||
|
||||
this.CreateTestFile(uploadedFileName, 1);
|
||||
|
||||
@@ -102,7 +102,7 @@ namespace Renci.SshNet.Tests.SftpClientTests
|
||||
{
|
||||
sftp.Connect();
|
||||
|
||||
string remoteFileName = "/root/install.log";
|
||||
string remoteFileName = "/root/.profile";
|
||||
|
||||
using (var ms = new MemoryStream())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user