Skip to content

Commit 7dba691

Browse files
committed
fix: isolated-tests for localhost
1 parent 099e215 commit 7dba691

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/host/localhost.rs

+2
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,7 @@ mod tests {
579579

580580
#[test]
581581
#[cfg(posix)]
582+
#[cfg(not(feature = "isolated-tests"))]
582583
fn test_host_localhost_new() {
583584
let host: Localhost = Localhost::new(PathBuf::from("/dev")).ok().unwrap();
584585
assert_eq!(host.wrkdir, PathBuf::from("/dev"));
@@ -622,6 +623,7 @@ mod tests {
622623

623624
#[test]
624625
#[cfg(posix)]
626+
#[cfg(not(feature = "isolated-tests"))]
625627
fn test_host_localhost_change_dir() {
626628
let mut host: Localhost = Localhost::new(PathBuf::from("/dev")).ok().unwrap();
627629
let new_dir: PathBuf = PathBuf::from("/dev");

0 commit comments

Comments
 (0)