diff --git a/packages/flutter_tools/test/integration.shard/debug_adapter/flutter_adapter_test.dart b/packages/flutter_tools/test/integration.shard/debug_adapter/flutter_adapter_test.dart index b1da44d3ab..ebcc397b92 100644 --- a/packages/flutter_tools/test/integration.shard/debug_adapter/flutter_adapter_test.dart +++ b/packages/flutter_tools/test/integration.shard/debug_adapter/flutter_adapter_test.dart @@ -67,7 +67,7 @@ void main() { 'Application finished.', '', startsWith('Exited'), - ], allowExtras: true); + ]); }); testWithoutContext('logs to client when sendLogsToClient=true', () async { @@ -131,7 +131,7 @@ void main() { 'Application finished.', '', startsWith('Exited'), - ], allowExtras: true); + ]); // If we're running with an out-of-process debug adapter, ensure that its // own process shuts down after we terminated. diff --git a/packages/flutter_tools/test/integration.shard/debug_adapter/test_client.dart b/packages/flutter_tools/test/integration.shard/debug_adapter/test_client.dart index 8ad1a049ae..f691fb5eff 100644 --- a/packages/flutter_tools/test/integration.shard/debug_adapter/test_client.dart +++ b/packages/flutter_tools/test/integration.shard/debug_adapter/test_client.dart @@ -357,12 +357,18 @@ extension DapTestClientExtension on DapTestClient { final List output = await outputEventsFuture; - // TODO(dantup): Integration tests currently trigger "flutter pub get" at - // the start due to some timestamp manipulation writing the pubspec. - // It may be possible to remove this if - // https://github.com/flutter/flutter/pull/91300 lands. + // Integration tests may trigger "flutter pub get" at the start based of + // `pubspec/yaml` and `.dart_tool/package_config.json`. + // See + // https://github.com/flutter/flutter/pull/91300 + // https://github.com/flutter/flutter/issues/120015 return skipInitialPubGetOutput - ? output.skipWhile((OutputEventBody output) => output.output.startsWith('Running "flutter pub get"')).toList() + ? output + .skipWhile((OutputEventBody output) => + output.output.startsWith('Running "flutter pub get"') || + output.output.startsWith('Resolving dependencies') || + output.output.startsWith('Got dependencies')) + .toList() : output; }