Skip to content

Commit e9a9cbd

Browse files
committed
Added sleep to hopefully reduce I/O test flakiness
1 parent 86e221d commit e9a9cbd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/outputs/advanced_file_output_test.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ void main() {
169169
output.output(event1);
170170
await output.destroy();
171171

172+
// Give the OS a chance to flush to the file system (should reduce flakiness)
173+
await Future.delayed(const Duration(milliseconds: 50));
174+
172175
// And again for another roll
173176
await output.init();
174177
final event2 = OutputEvent(LogEvent(Level.fatal, ""), ["3" * 1500]);

0 commit comments

Comments
 (0)