Skip to content

Commit

Permalink
fix tests?
Browse files Browse the repository at this point in the history
  • Loading branch information
9999years committed Oct 8, 2024
1 parent 377a65b commit c5bd604
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/copy_dir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,12 @@ mod tests {
}

fn assert_dirs_same<P: AsRef<Path>>(a: P, b: P) {
let mut wa = walkdir::WalkDir::new(a.as_ref()).into_iter();
let mut wb = walkdir::WalkDir::new(b.as_ref()).into_iter();
let mut wa = walkdir::WalkDir::new(a.as_ref())
.sort_by_file_name()
.into_iter();
let mut wb = walkdir::WalkDir::new(b.as_ref())
.sort_by_file_name()
.into_iter();

loop {
let o_na = wa.next();
Expand Down

0 comments on commit c5bd604

Please sign in to comment.