diff --git a/packages/flutter_tools/test/commands.shard/permeable/create_test.dart b/packages/flutter_tools/test/commands.shard/permeable/create_test.dart index c2de75abcc..3d1d95b11c 100644 --- a/packages/flutter_tools/test/commands.shard/permeable/create_test.dart +++ b/packages/flutter_tools/test/commands.shard/permeable/create_test.dart @@ -3126,17 +3126,26 @@ Future _analyzeProject(String workingDir, { List expectedFailures final String lintName = lineComponents.removeLast(); final String location = lineComponents.removeLast(); return '$location: $lintName'; - // Add debugging for https://github.com/flutter/flutter/issues/111272 } on RangeError catch (err) { - fail('Received "$err" while trying to parse:\n\n$line'); + throw RangeError('Received "$err" while trying to parse: "$line".'); } } - final List errors = const LineSplitter().convert(exec.stdout.toString()) + final String stdout = exec.stdout.toString(); + final List errors; + try { + errors = const LineSplitter().convert(stdout) .where((String line) { return line.trim().isNotEmpty && !line.startsWith('Analyzing') && - !line.contains('flutter pub get'); + !line.contains('flutter pub get') && + !line.contains('Resolving dependencies') && + !line.contains('Got dependencies'); }).map(lineParser).toList(); + + // Add debugging for https://github.com/flutter/flutter/issues/111272 + } on RangeError catch (err) { + fail('$err\n\nComplete STDOUT was:\n\n$stdout'); + } expect(errors, unorderedEquals(expectedFailures)); }