[flutter_tools] Migrate more integration tests to process result matcher (#128737)

Part of https://github.com/flutter/flutter/issues/127135
This commit is contained in:
Christopher Fujino
2023-06-15 13:25:32 -07:00
committed by GitHub
parent 735fc29622
commit cc83f03822
11 changed files with 34 additions and 51 deletions

View File

@@ -34,10 +34,7 @@ void main() {
fileSystem.path.join(tempDir.path, 'main.dart'),
]);
printOnFailure('Output of dart main.dart:');
printOnFailure(result.stdout.toString());
printOnFailure(result.stderr.toString());
expect(result.exitCode, 0);
expect(result, const ProcessResultMatcher());
});
testWithoutContext('dart.sh/bat can return a non-zero exit code', () async {
@@ -54,9 +51,6 @@ void main() {
fileSystem.path.join(tempDir.path, 'main.dart'),
]);
printOnFailure('Output of dart main.dart:');
printOnFailure(result.stdout.toString());
printOnFailure(result.stderr.toString());
expect(result.exitCode, 1);
expect(result, const ProcessResultMatcher(exitCode: 1));
});
}