Skip to content

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

notify/src/kqueue.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -983,8 +983,11 @@ mod tests {
983983

984984
std::fs::remove_file(&file).expect("remove");
985985

986-
rx.wait_ordered_exact([expected(&file).remove_any()])
987-
.ensure_no_tail();
986+
rx.wait_ordered_exact([
987+
expected(&file).remove_any(),
988+
expected(tmpdir.path()).modify_data_any(),
989+
])
990+
.ensure_no_tail();
988991
assert_eq!(
989992
watcher.get_watch_handles(),
990993
HashSet::from([tmpdir.to_path_buf()])
@@ -993,7 +996,7 @@ mod tests {
993996
std::fs::write(&file, "").expect("write");
994997

995998
rx.wait_ordered_exact([
996-
expected(tmpdir.path()).modify_data_any(),
999+
expected(tmpdir.path()).modify_data_any().optional(),
9971000
expected(&file).create_file(),
9981001
]);
9991002
assert_eq!(

notify/src/windows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,7 @@ pub mod tests {
10791079
expected(tmpdir.path()).modify_any().optional(),
10801080
expected(&overwriting_file).rename_from(),
10811081
expected(&overwritten_file).rename_to(),
1082-
expected(tmpdir.path()).modify_any(),
1082+
expected(tmpdir.path()).modify_any().optional(),
10831083
])
10841084
.ensure_no_tail();
10851085
assert_eq!(

0 commit comments

Comments
 (0)