Unverified Commit 42c9e276 authored by Jenn Magder's avatar Jenn Magder Committed by GitHub

Increase dart migrate integration test timeout (#77192)

parent eee0dc84
...@@ -13,55 +13,57 @@ import 'test_utils.dart'; ...@@ -13,55 +13,57 @@ import 'test_utils.dart';
void main() { void main() {
/// Verifies that `dart migrate` will run successfully on the default `flutter create` /// Verifies that `dart migrate` will run successfully on the default `flutter create`
/// template. /// template.
testWithoutContext('dart migrate succeeds on flutter create template', () async { group('dart migrate', () {
Directory tempDir; testWithoutContext('dart migrate succeeds on flutter create template', () async {
try { Directory tempDir;
tempDir = await _createProject(tempDir); try {
await _migrate(tempDir); tempDir = await _createProject(tempDir);
await _analyze(tempDir); await _migrate(tempDir);
} finally { await _analyze(tempDir);
tempDir?.deleteSync(recursive: true); } finally {
} tempDir?.deleteSync(recursive: true);
}); }
});
/// Verifies that `dart migrate` will run successfully on the module template /// Verifies that `dart migrate` will run successfully on the module template
/// used by `flutter create --template=module`. /// used by `flutter create --template=module`.
testWithoutContext('dart migrate succeeds on module template', () async { testWithoutContext('dart migrate succeeds on module template', () async {
Directory tempDir; Directory tempDir;
try { try {
tempDir = await _createProject(tempDir, <String>['--template=module']); tempDir = await _createProject(tempDir, <String>['--template=module']);
await _migrate(tempDir); await _migrate(tempDir);
await _analyze(tempDir); await _analyze(tempDir);
} finally { } finally {
tempDir?.deleteSync(recursive: true); tempDir?.deleteSync(recursive: true);
} }
}, timeout: const Timeout(Duration(minutes: 1))); });
/// Verifies that `dart migrate` will run successfully on the module template /// Verifies that `dart migrate` will run successfully on the module template
/// used by `flutter create --template=plugin`. /// used by `flutter create --template=plugin`.
testWithoutContext('dart migrate succeeds on plugin template', () async { testWithoutContext('dart migrate succeeds on plugin template', () async {
Directory tempDir; Directory tempDir;
try { try {
tempDir = await _createProject(tempDir, <String>['--template=plugin']); tempDir = await _createProject(tempDir, <String>['--template=plugin']);
await _migrate(tempDir); await _migrate(tempDir);
await _analyze(tempDir); await _analyze(tempDir);
} finally { } finally {
tempDir?.deleteSync(recursive: true); tempDir?.deleteSync(recursive: true);
} }
}); });
/// Verifies that `dart migrate` will run successfully on the module template /// Verifies that `dart migrate` will run successfully on the module template
/// used by `flutter create --template=package`. /// used by `flutter create --template=package`.
testWithoutContext('dart migrate succeeds on package template', () async { testWithoutContext('dart migrate succeeds on package template', () async {
Directory tempDir; Directory tempDir;
try { try {
tempDir = await _createProject(tempDir, <String>['--template=package']); tempDir = await _createProject(tempDir, <String>['--template=package']);
await _migrate(tempDir); await _migrate(tempDir);
await _analyze(tempDir); await _analyze(tempDir);
} finally { } finally {
tempDir?.deleteSync(recursive: true); tempDir?.deleteSync(recursive: true);
} }
}); });
}, timeout: const Timeout(Duration(seconds: 90)));
} }
Future<Directory> _createProject(Directory tempDir, [List<String> extraAgs]) async { Future<Directory> _createProject(Directory tempDir, [List<String> extraAgs]) 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