Fixed windows host test

This commit is contained in:
ChristianVisintin 2020-12-06 11:12:36 +01:00
parent 24d60483f0
commit 1783a0fc35

View file

@ -481,8 +481,8 @@ mod tests {
#[test]
#[cfg(target_os = "windows")]
fn test_host_localhost_new() {
let host: Localhost = Localhost::new(PathBuf::from("C:\\")).ok().unwrap();
assert_eq!(host.wrkdir, PathBuf::from("C:\\"));
let host: Localhost = Localhost::new(PathBuf::from("C:\\users")).ok().unwrap();
assert_eq!(host.wrkdir, PathBuf::from("C:\\users"));
// Scan dir
let entries = std::fs::read_dir(PathBuf::from("C:\\").as_path()).unwrap();
let mut counter: usize = 0;