mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
Fixed windows host test
This commit is contained in:
@@ -481,8 +481,8 @@ mod tests {
|
|||||||
#[test]
|
#[test]
|
||||||
#[cfg(target_os = "windows")]
|
#[cfg(target_os = "windows")]
|
||||||
fn test_host_localhost_new() {
|
fn test_host_localhost_new() {
|
||||||
let host: Localhost = Localhost::new(PathBuf::from("C:\\")).ok().unwrap();
|
let host: Localhost = Localhost::new(PathBuf::from("C:\\users")).ok().unwrap();
|
||||||
assert_eq!(host.wrkdir, PathBuf::from("C:\\"));
|
assert_eq!(host.wrkdir, PathBuf::from("C:\\users"));
|
||||||
// Scan dir
|
// Scan dir
|
||||||
let entries = std::fs::read_dir(PathBuf::from("C:\\").as_path()).unwrap();
|
let entries = std::fs::read_dir(PathBuf::from("C:\\").as_path()).unwrap();
|
||||||
let mut counter: usize = 0;
|
let mut counter: usize = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user