Unverified Commit 46b2d646 authored by Mikkel Nygaard Ravn's avatar Mikkel Nygaard Ravn Committed by GitHub

Update timeouts for flutter create tests (#12965)

parent 7298f9ca
...@@ -6,5 +6,5 @@ To run the tests, ensure that no devices are connected, ...@@ -6,5 +6,5 @@ To run the tests, ensure that no devices are connected,
then navigate to `flutter_tools` and execute: then navigate to `flutter_tools` and execute:
```shell ```shell
../../bin/cache/dart-sdk/bin/pub run test DART_VM_OPTIONS=--assert-initializer ../../bin/cache/dart-sdk/bin/pub run test
``` ```
...@@ -57,7 +57,7 @@ void main() { ...@@ -57,7 +57,7 @@ void main() {
'flutter_project.iml', 'flutter_project.iml',
], ],
); );
}, timeout: const Timeout.factor(2.0)); }, timeout: const Timeout.factor(3.0));
testUsingContext('kotlin/swift project', () async { testUsingContext('kotlin/swift project', () async {
return _createProject( return _createProject(
...@@ -76,7 +76,7 @@ void main() { ...@@ -76,7 +76,7 @@ void main() {
'ios/Runner/main.m', 'ios/Runner/main.m',
], ],
); );
}); }, timeout: const Timeout.factor(3.0));
testUsingContext('package project', () async { testUsingContext('package project', () async {
return _createAndAnalyzeProject( return _createAndAnalyzeProject(
...@@ -103,7 +103,7 @@ void main() { ...@@ -103,7 +103,7 @@ void main() {
'test/widget_test.dart', 'test/widget_test.dart',
], ],
); );
}, timeout: const Timeout.factor(2.0)); }, timeout: const Timeout.factor(3.0));
testUsingContext('plugin project', () async { testUsingContext('plugin project', () async {
return _createAndAnalyzeProject( return _createAndAnalyzeProject(
...@@ -123,7 +123,7 @@ void main() { ...@@ -123,7 +123,7 @@ void main() {
], ],
plugin: true, plugin: true,
); );
}, timeout: const Timeout.factor(2.0)); }, timeout: const Timeout.factor(3.0));
testUsingContext('kotlin/swift plugin project', () async { testUsingContext('kotlin/swift plugin project', () async {
return _createProject( return _createProject(
...@@ -149,7 +149,7 @@ void main() { ...@@ -149,7 +149,7 @@ void main() {
], ],
plugin: true, plugin: true,
); );
}); }, timeout: const Timeout.factor(3.0));
testUsingContext('plugin project with custom org', () async { testUsingContext('plugin project with custom org', () async {
return _createProject( return _createProject(
...@@ -165,7 +165,7 @@ void main() { ...@@ -165,7 +165,7 @@ void main() {
], ],
plugin: true, plugin: true,
); );
}); }, timeout: const Timeout.factor(3.0));
testUsingContext('project with-driver-test', () async { testUsingContext('project with-driver-test', () async {
return _createAndAnalyzeProject( return _createAndAnalyzeProject(
...@@ -173,7 +173,7 @@ void main() { ...@@ -173,7 +173,7 @@ void main() {
<String>['--with-driver-test'], <String>['--with-driver-test'],
<String>['lib/main.dart'], <String>['lib/main.dart'],
); );
}, timeout: const Timeout.factor(2.0)); }, timeout: const Timeout.factor(3.0));
// Verify content and formatting // Verify content and formatting
testUsingContext('content', () async { testUsingContext('content', () async {
...@@ -248,7 +248,8 @@ void main() { ...@@ -248,7 +248,8 @@ void main() {
}, },
overrides: <Type, Generator>{ overrides: <Type, Generator>{
FlutterVersion: () => mockFlutterVersion, FlutterVersion: () => mockFlutterVersion,
}); },
timeout: const Timeout.factor(3.0));
// Verify that we can regenerate over an existing project. // Verify that we can regenerate over an existing project.
testUsingContext('can re-gen over existing project', () async { testUsingContext('can re-gen over existing project', () async {
...@@ -260,7 +261,7 @@ void main() { ...@@ -260,7 +261,7 @@ void main() {
await runner.run(<String>['create', '--no-pub', projectDir.path]); await runner.run(<String>['create', '--no-pub', projectDir.path]);
await runner.run(<String>['create', '--no-pub', projectDir.path]); await runner.run(<String>['create', '--no-pub', projectDir.path]);
}); }, timeout: const Timeout.factor(3.0));
// Verify that we help the user correct an option ordering issue // Verify that we help the user correct an option ordering issue
testUsingContext('produces sensible error message', () async { testUsingContext('produces sensible error message', () async {
......
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