Skip to content

Commit

Permalink
Only assert this on unix
Browse files Browse the repository at this point in the history
  • Loading branch information
flub committed Dec 14, 2023
1 parent df592b1 commit 45c7e09
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/numbered_dir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,10 @@ mod tests {
assert!(dir_1.path().is_dir());

let current = fs::read_link(parent.path().join("base-current")).unwrap();

// We know that on windows the first symlink probably didn't get removed, symlinks
// are best-effort there.
#[cfg(target_family = "unix")]
assert_eq!(dir_1.path(), current);
}

Expand Down

0 comments on commit 45c7e09

Please sign in to comment.