From 7be261a1bbfd1034bcec99fc40a14ae23d7fa2f4 Mon Sep 17 00:00:00 2001 From: Zachary Anderson Date: Wed, 11 May 2022 12:37:35 -0700 Subject: [PATCH] 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 --- dev/devicelab/lib/tasks/perf_tests.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dev/devicelab/lib/tasks/perf_tests.dart b/dev/devicelab/lib/tasks/perf_tests.dart index d7fa5d45786..ef4280213e1 100644 --- a/dev/devicelab/lib/tasks/perf_tests.dart +++ b/dev/devicelab/lib/tasks/perf_tests.dart @@ -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 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 waitForFile(String path) async { } await Future.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) {