remove Downloading ... stderr messages (#92211)

This commit is contained in:
Christopher Fujino 2021-10-20 17:13:02 -07:00 committed by GitHub
parent 4d70c13808
commit 44bf975115
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -250,6 +250,9 @@ Future<void> _testFile(
if (output.first.startsWith('Running "flutter pub get" in')) {
output.removeAt(0);
}
// Whether cached artifacts need to be downloaded is dependent on what
// previous tests have run. Disregard these messages.
output.removeWhere(RegExp(r'Downloading .*\.\.\.').hasMatch);
output.add('<<stderr>>');
output.addAll((exec.stderr as String).split('\n'));
final List<String> expectations = fileSystem.file(fullTestExpectation).readAsLinesSync();