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:
Zachary Anderson 2022-05-11 12:37:35 -07:00 committed by GitHub
parent 886b804836
commit 7be261a1bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {