Skip to content

Commit

Permalink
Deflake FileDeletedWhileIterating (#32779)
Browse files Browse the repository at this point in the history
This test is right to be concerned about arbitrary iteration order. However, it failed to list `"file2"` as a possibility.

Signed-off-by: Benjamin Peterson <benjamin@locrian.net>
  • Loading branch information
benjaminp authored Mar 8, 2024
1 parent 0cb0b01 commit 3a1408b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/common/filesystem/directory_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ TEST_F(DirectoryTest, FileDeletedWhileIterating) {
EntrySet{
{".", FileType::Directory, absl::nullopt},
{"..", FileType::Directory, absl::nullopt},
{"file1", FileType::Regular, 0},
{"file2", FileType::Regular, 0},
}));
}
#endif
Expand Down

0 comments on commit 3a1408b

Please sign in to comment.