We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce9d2ad commit 1264445Copy full SHA for 1264445
pkgs/watcher/test/directory_watcher/windows_test.dart
@@ -169,7 +169,12 @@ void main() {
169
}
170
171
// Events only happen when there is an async gap, wait for such a gap.
172
- await Future<void>.delayed(const Duration(milliseconds: 10));
+ // The event usually arrives in under 10ms, try for 100ms.
173
+ var tries = 0;
174
+ while (errorsSeen == 0 && eventsSeen == 0 && tries < 10) {
175
+ await Future<void>.delayed(const Duration(milliseconds: 10));
176
+ ++tries;
177
+ }
178
179
// If everything is going well, there should have been either one event
180
// seen or one error seen.
0 commit comments