diff --git a/packages/flutter_tools/test/integration.shard/flutter_immediately_exit_test.dart b/packages/flutter_tools/test/integration.shard/flutter_immediately_exit_test.dart deleted file mode 100644 index f55ec37526..0000000000 --- a/packages/flutter_tools/test/integration.shard/flutter_immediately_exit_test.dart +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2014 The Flutter Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -// @dart = 2.8 - -import 'package:file/file.dart'; - -import '../src/common.dart'; -import 'test_data/project_with_immediate_exit.dart'; -import 'test_driver.dart'; -import 'test_utils.dart'; - -void main() { - group('immediate exit', () { - Directory tempDir; - final ProjectWithImmediateExit _project = ProjectWithImmediateExit(); - FlutterRunTestDriver _flutter; - - setUp(() async { - tempDir = createResolvedTempDirectorySync('run_test.'); - await _project.setUpIn(tempDir); - _flutter = FlutterRunTestDriver(tempDir); - }); - - tearDown(() async { - tryToDelete(tempDir); - }); - - testWithoutContext('flutter_tools gracefully handles quick app shutdown', () async { - try { - await _flutter.run(); - } on Exception { - expect(_flutter.lastErrorInfo, contains('Error connecting to the service protocol:')); - expect( - _flutter.lastErrorInfo.contains( - // Looks for stack trace entry of the form: - // test/integration.shard/test_driver.dart 379:18 FlutterTestDriver._waitFor. - RegExp(r'^(.+)\/([^\/]+)\.dart \d*:\d*\s*.*\$') - ), - isFalse - ); - } - }); - }, skip: true, // Flaky: https://github.com/flutter/flutter/issues/74052 - ); -} diff --git a/packages/flutter_tools/test/integration.shard/test_data/project_with_immediate_exit.dart b/packages/flutter_tools/test/integration.shard/test_data/project_with_immediate_exit.dart deleted file mode 100644 index 61ec52d545..0000000000 --- a/packages/flutter_tools/test/integration.shard/test_data/project_with_immediate_exit.dart +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright 2014 The Flutter Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -// @dart = 2.8 - -import 'project.dart'; - -class ProjectWithImmediateExit extends Project { - - @override - final String pubspec = ''' - name: test - environment: - sdk: ">=2.12.0-0 <3.0.0" - - dependencies: - flutter: - sdk: flutter - '''; - - @override - final String main = r''' - import 'dart:async'; - import 'dart:io'; - - Future main() async { - await Future.delayed(const Duration(milliseconds: 50)); - exit(0); - } - '''; - -}