mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Wait longer for the vmservice out file to appear (#103513)
An hour is likely longer than the CI timeout. Fixes https://github.com/flutter/flutter/issues/103504
This commit is contained in:
parent
886b804836
commit
7be261a1bb
@ -1794,9 +1794,9 @@ class _UnzipListEntry {
|
||||
final String path;
|
||||
}
|
||||
|
||||
/// Wait for up to 400 seconds for the file to appear.
|
||||
/// Wait for up to 1 hour for the file to appear.
|
||||
Future<File> waitForFile(String path) async {
|
||||
for (int i = 0; i < 20; i += 1) {
|
||||
for (int i = 0; i < 180; i += 1) {
|
||||
final File file = File(path);
|
||||
print('looking for ${file.path}');
|
||||
if (file.existsSync()) {
|
||||
@ -1804,7 +1804,7 @@ Future<File> waitForFile(String path) async {
|
||||
}
|
||||
await Future<void>.delayed(const Duration(seconds: 20));
|
||||
}
|
||||
throw StateError('Did not find vmservice out file after 400 seconds');
|
||||
throw StateError('Did not find vmservice out file after 1 hour');
|
||||
}
|
||||
|
||||
String? _findIosAppInBuildDirectory(String searchDirectory) {
|
||||
|
Loading…
Reference in New Issue
Block a user