Skip to content

Commit 13afa87

Browse files
authored
test: add optional modify_data_size event expects for kqueue (#49)
To fix this flaky failure: https://github.com/rolldown/notify/actions/runs/19674128772/job/56350528526#step:6:262
1 parent f08ad6a commit 13afa87

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

notify/src/kqueue.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -934,6 +934,7 @@ mod tests {
934934

935935
rx.wait_ordered_exact([
936936
expected(&path).modify_meta_any().optional(),
937+
expected(&path).modify_data_size().optional(),
937938
expected(&path).modify_data_any(),
938939
])
939940
.ensure_no_tail();
@@ -1149,6 +1150,7 @@ mod tests {
11491150
rx.wait_ordered([
11501151
// create for overwriting_file can be
11511152
// create_file or create_other and may be missing
1153+
expected(&overwriting_file).modify_data_size().optional(),
11521154
expected(&overwriting_file)
11531155
.modify_data_any()
11541156
.optional()
@@ -1388,6 +1390,7 @@ mod tests {
13881390
std::fs::remove_file(&new_path).expect("remove");
13891391

13901392
rx.wait_ordered([
1393+
expected(&file2).modify_data_size().optional(),
13911394
expected(&file2).modify_data_any(),
13921395
expected(&new_path).create_file().optional(),
13931396
expected(&file1).rename_any().optional(),
@@ -1483,6 +1486,7 @@ mod tests {
14831486

14841487
rx.wait_ordered_exact([
14851488
expected(&path).modify_meta_any().optional(),
1489+
expected(&path).modify_data_size().optional(),
14861490
expected(&path).modify_data_any(),
14871491
])
14881492
.ensure_no_tail();
@@ -1513,6 +1517,7 @@ mod tests {
15131517

15141518
rx.wait_ordered_exact([
15151519
expected(&file).modify_meta_any().optional(),
1520+
expected(&file).modify_data_size().optional(),
15161521
expected(&file).modify_data_any(),
15171522
])
15181523
.ensure_no_tail();

0 commit comments

Comments
 (0)