Skip to content

Commit

Permalink
Added sleep to hopefully reduce I/O test flakiness
Browse files Browse the repository at this point in the history
  • Loading branch information
Bungeefan committed May 2, 2024
1 parent 86e221d commit e9a9cbd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/outputs/advanced_file_output_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ void main() {
output.output(event1);
await output.destroy();

// Give the OS a chance to flush to the file system (should reduce flakiness)
await Future.delayed(const Duration(milliseconds: 50));

// And again for another roll
await output.init();
final event2 = OutputEvent(LogEvent(Level.fatal, ""), ["3" * 1500]);
Expand Down

0 comments on commit e9a9cbd

Please sign in to comment.