File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -120,24 +120,25 @@ void main() {
120
120
output.output (event0);
121
121
await output.destroy ();
122
122
123
+ // TODO Find out why test is so flaky with durations <1000ms
123
124
// Give the OS a chance to flush to the file system (should reduce flakiness)
124
- await Future .delayed (const Duration (milliseconds: 50 ));
125
+ await Future .delayed (const Duration (milliseconds: 1000 ));
125
126
126
127
// Start again to roll files on init without waiting for timer tick
127
128
await output.init ();
128
129
final event1 = OutputEvent (LogEvent (Level .fatal, "" ), ["2" * 1500 ]);
129
130
output.output (event1);
130
131
await output.destroy ();
131
132
132
- await Future .delayed (const Duration (milliseconds: 50 ));
133
+ await Future .delayed (const Duration (milliseconds: 1000 ));
133
134
134
135
// And again for another roll
135
136
await output.init ();
136
137
final event2 = OutputEvent (LogEvent (Level .fatal, "" ), ["3" * 1500 ]);
137
138
output.output (event2);
138
139
await output.destroy ();
139
140
140
- await Future .delayed (const Duration (milliseconds: 50 ));
141
+ await Future .delayed (const Duration (milliseconds: 1000 ));
141
142
142
143
final files = dir.listSync ();
143
144
You can’t perform that action at this time.
0 commit comments