From 46b2d6462e334f2beafecd07ab307cb725418d00 Mon Sep 17 00:00:00 2001 From: Mikkel Nygaard Ravn Date: Fri, 10 Nov 2017 09:35:11 +0100 Subject: [PATCH] Update timeouts for flutter create tests (#12965) --- packages/flutter_tools/README.md | 2 +- .../test/commands/create_test.dart | 19 ++++++++++--------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/packages/flutter_tools/README.md b/packages/flutter_tools/README.md index 3fe19e378dc..69c330bc4c8 100644 --- a/packages/flutter_tools/README.md +++ b/packages/flutter_tools/README.md @@ -6,5 +6,5 @@ To run the tests, ensure that no devices are connected, then navigate to `flutter_tools` and execute: ```shell -../../bin/cache/dart-sdk/bin/pub run test +DART_VM_OPTIONS=--assert-initializer ../../bin/cache/dart-sdk/bin/pub run test ``` diff --git a/packages/flutter_tools/test/commands/create_test.dart b/packages/flutter_tools/test/commands/create_test.dart index 9f060c0fd78..43976fea73b 100644 --- a/packages/flutter_tools/test/commands/create_test.dart +++ b/packages/flutter_tools/test/commands/create_test.dart @@ -57,7 +57,7 @@ void main() { 'flutter_project.iml', ], ); - }, timeout: const Timeout.factor(2.0)); + }, timeout: const Timeout.factor(3.0)); testUsingContext('kotlin/swift project', () async { return _createProject( @@ -76,7 +76,7 @@ void main() { 'ios/Runner/main.m', ], ); - }); + }, timeout: const Timeout.factor(3.0)); testUsingContext('package project', () async { return _createAndAnalyzeProject( @@ -103,7 +103,7 @@ void main() { 'test/widget_test.dart', ], ); - }, timeout: const Timeout.factor(2.0)); + }, timeout: const Timeout.factor(3.0)); testUsingContext('plugin project', () async { return _createAndAnalyzeProject( @@ -123,7 +123,7 @@ void main() { ], plugin: true, ); - }, timeout: const Timeout.factor(2.0)); + }, timeout: const Timeout.factor(3.0)); testUsingContext('kotlin/swift plugin project', () async { return _createProject( @@ -149,7 +149,7 @@ void main() { ], plugin: true, ); - }); + }, timeout: const Timeout.factor(3.0)); testUsingContext('plugin project with custom org', () async { return _createProject( @@ -165,7 +165,7 @@ void main() { ], plugin: true, ); - }); + }, timeout: const Timeout.factor(3.0)); testUsingContext('project with-driver-test', () async { return _createAndAnalyzeProject( @@ -173,7 +173,7 @@ void main() { ['--with-driver-test'], ['lib/main.dart'], ); - }, timeout: const Timeout.factor(2.0)); + }, timeout: const Timeout.factor(3.0)); // Verify content and formatting testUsingContext('content', () async { @@ -248,7 +248,8 @@ void main() { }, overrides: { FlutterVersion: () => mockFlutterVersion, - }); + }, + timeout: const Timeout.factor(3.0)); // Verify that we can regenerate over an existing project. testUsingContext('can re-gen over existing project', () async { @@ -260,7 +261,7 @@ void main() { await runner.run(['create', '--no-pub', projectDir.path]); await runner.run(['create', '--no-pub', projectDir.path]); - }); + }, timeout: const Timeout.factor(3.0)); // Verify that we help the user correct an option ordering issue testUsingContext('produces sensible error message', () async {