Skip to content

Commit

Permalink
fix: isolated-tests for localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
veeso committed Nov 13, 2024
1 parent 099e215 commit 7dba691
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/host/localhost.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 7dba691

Please sign in to comment.