Unverified Commit 7be261a1 authored by Zachary Anderson's avatar Zachary Anderson Committed by GitHub

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
parent 886b8048
...@@ -1794,9 +1794,9 @@ class _UnzipListEntry { ...@@ -1794,9 +1794,9 @@ class _UnzipListEntry {
final String path; 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 { 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); final File file = File(path);
print('looking for ${file.path}'); print('looking for ${file.path}');
if (file.existsSync()) { if (file.existsSync()) {
...@@ -1804,7 +1804,7 @@ Future<File> waitForFile(String path) async { ...@@ -1804,7 +1804,7 @@ Future<File> waitForFile(String path) async {
} }
await Future<void>.delayed(const Duration(seconds: 20)); 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) { String? _findIosAppInBuildDirectory(String searchDirectory) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment