From b7a268fed290455151a33336d211c4ab397f783b Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Wed, 23 May 2018 13:04:40 -0700 Subject: [PATCH] increase the timeout for analyze_once_test tests (#17845) --- .../flutter_tools/test/commands/analyze_once_test.dart | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/flutter_tools/test/commands/analyze_once_test.dart b/packages/flutter_tools/test/commands/analyze_once_test.dart index dc604672e8..d14fe980ee 100644 --- a/packages/flutter_tools/test/commands/analyze_once_test.dart +++ b/packages/flutter_tools/test/commands/analyze_once_test.dart @@ -16,6 +16,9 @@ import 'package:test/test.dart'; import '../src/common.dart'; import '../src/context.dart'; +/// Test case timeout for tests involving project analysis. +const Timeout allowForSlowAnalyzeTests = const Timeout.factor(5.0); + void main() { final String analyzerSeparator = platform.isWindows ? '-' : '•'; @@ -60,7 +63,7 @@ void main() { arguments: ['analyze'], statusTextContains: ['No issues found!'], ); - }, timeout: const Timeout.factor(2.0)); + }, timeout: allowForSlowAnalyzeTests); // Analyze a specific file outside the current directory testUsingContext('passing one file throws', () async { @@ -102,7 +105,7 @@ void main() { ], toolExit: true, ); - }, timeout: const Timeout.factor(2.0)); + }, timeout: allowForSlowAnalyzeTests); // Analyze in the current directory - no arguments testUsingContext('working directory with local options', () async { @@ -129,7 +132,7 @@ void main() { ], toolExit: true, ); - }, timeout: const Timeout.factor(2.0)); + }, timeout: allowForSlowAnalyzeTests); testUsingContext('no duplicate issues', () async { final Directory tempDir = fs.systemTempDirectory.createTempSync('analyze_once_test_').absolute;