forked from firka/flutter
[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:
committed by
GitHub
parent
735fc29622
commit
cc83f03822
@@ -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));
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user