mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
fix: isolated-tests for localhost
This commit is contained in:
@@ -579,6 +579,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
#[cfg(posix)]
|
||||
#[cfg(not(feature = "isolated-tests"))]
|
||||
fn test_host_localhost_new() {
|
||||
let host: Localhost = Localhost::new(PathBuf::from("/dev")).ok().unwrap();
|
||||
assert_eq!(host.wrkdir, PathBuf::from("/dev"));
|
||||
@@ -622,6 +623,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
#[cfg(posix)]
|
||||
#[cfg(not(feature = "isolated-tests"))]
|
||||
fn test_host_localhost_change_dir() {
|
||||
let mut host: Localhost = Localhost::new(PathBuf::from("/dev")).ok().unwrap();
|
||||
let new_dir: PathBuf = PathBuf::from("/dev");
|
||||
|
||||
Reference in New Issue
Block a user