Unverified Commit 58301211 authored by Jenn Magder's avatar Jenn Magder Committed by GitHub

Skip flaky flutter_immediately_exit test (#74055)

parent f6156fee
...@@ -10,34 +10,36 @@ import 'test_driver.dart'; ...@@ -10,34 +10,36 @@ import 'test_driver.dart';
import 'test_utils.dart'; import 'test_utils.dart';
void main() { void main() {
Directory tempDir; group('immediate exit', () {
final ProjectWithImmediateExit _project = ProjectWithImmediateExit(); Directory tempDir;
FlutterRunTestDriver _flutter; final ProjectWithImmediateExit _project = ProjectWithImmediateExit();
FlutterRunTestDriver _flutter;
setUp(() async { setUp(() async {
tempDir = createResolvedTempDirectorySync('run_test.'); tempDir = createResolvedTempDirectorySync('run_test.');
await _project.setUpIn(tempDir); await _project.setUpIn(tempDir);
_flutter = FlutterRunTestDriver(tempDir); _flutter = FlutterRunTestDriver(tempDir);
}); });
tearDown(() async { tearDown(() async {
tryToDelete(tempDir); tryToDelete(tempDir);
}); });
testWithoutContext('flutter_tools gracefully handles quick app shutdown', () async {
testWithoutContext('flutter_tools gracefully handles quick app shutdown', () async { try {
try { await _flutter.run();
await _flutter.run(); } on Exception {
} on Exception { expect(_flutter.lastErrorInfo, contains('Error connecting to the service protocol:'));
expect(_flutter.lastErrorInfo, contains('Error connecting to the service protocol:')); expect(
expect( _flutter.lastErrorInfo.contains(
_flutter.lastErrorInfo.contains( // Looks for stack trace entry of the form:
// Looks for stack trace entry of the form: // test/integration.shard/test_driver.dart 379:18 FlutterTestDriver._waitFor.<fn>
// test/integration.shard/test_driver.dart 379:18 FlutterTestDriver._waitFor.<fn> RegExp(r'^(.+)\/([^\/]+)\.dart \d*:\d*\s*.*\$')
RegExp(r'^(.+)\/([^\/]+)\.dart \d*:\d*\s*.*\$') ),
), isFalse
isFalse );
); }
} });
}); }, skip: platform.isWindows, // Flaky on Windows: https://github.com/flutter/flutter/issues/74052
);
} }
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