mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
Removed test which can't run anymore
This commit is contained in:
@@ -648,29 +648,6 @@ mod tests {
|
|||||||
assert!(client.disconnect().is_ok());
|
assert!(client.disconnect().is_ok());
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn test_filetransfer_sftp_recv_failed_io() {
|
|
||||||
let mut client: SftpFileTransfer = SftpFileTransfer::new();
|
|
||||||
assert!(client
|
|
||||||
.connect(
|
|
||||||
String::from("test.rebex.net"),
|
|
||||||
22,
|
|
||||||
Some(String::from("demo")),
|
|
||||||
Some(String::from("password"))
|
|
||||||
)
|
|
||||||
.is_ok());
|
|
||||||
// Check session and sftp
|
|
||||||
assert!(client.session.is_some());
|
|
||||||
assert!(client.sftp.is_some());
|
|
||||||
assert_eq!(client.wrkdir, PathBuf::from("/"));
|
|
||||||
// Receive file
|
|
||||||
assert!(client
|
|
||||||
.recv_file(PathBuf::from("readme.txt").as_path())
|
|
||||||
.is_err());
|
|
||||||
// Disconnect
|
|
||||||
assert!(client.disconnect().is_ok());
|
|
||||||
}
|
|
||||||
|
|
||||||
// NOTE: other functions doesn't work with this test SFTP server
|
// NOTE: other functions doesn't work with this test SFTP server
|
||||||
|
|
||||||
/* NOTE: the server doesn't allow you to create directories
|
/* NOTE: the server doesn't allow you to create directories
|
||||||
|
|||||||
Reference in New Issue
Block a user