From 109d16cca12e8cf0a09dcd7cc308ef8e0d0ac62a Mon Sep 17 00:00:00 2001 From: Yegor Jbanov Date: Thu, 18 Aug 2016 09:18:13 -0700 Subject: [PATCH] time out startup tests sooner Due to https://github.com/flutter/flutter/issues/5477 flutter run is unable to exit when an error occurs. Currently our tests get stuck until the default timeout of 10 minutes expires. That's way too long for a startup test. This PR customizes the timeout for startup tests to 2 minutes. --- agent/lib/src/perf_tests.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agent/lib/src/perf_tests.dart b/agent/lib/src/perf_tests.dart index 8670e1f3e7..0ec7ed06b1 100644 --- a/agent/lib/src/perf_tests.dart +++ b/agent/lib/src/perf_tests.dart @@ -45,6 +45,7 @@ Task createComplexLayoutBuildTest() { /// Measure application startup performance. class StartupTest extends Task { + static const Duration _startupTimeout = const Duration(minutes: 10); StartupTest(String name, this.testDirectory, { this.ios }) : super(name); @@ -66,7 +67,7 @@ class StartupTest extends Task { '--trace-startup', '-d', deviceId - ]); + ]).timeout(_startupTimeout); Map data = JSON.decode(file('$testDirectory/build/start_up_info.json').readAsStringSync()); return new TaskResultData(data, benchmarkScoreKeys: [ 'engineEnterTimestampMicros',