Revert matcher package (#18614)

The new matcher package deprecates isInstanceOf which seems eggregious.
This commit is contained in:
Ian Hickson
2018-06-19 17:22:56 -07:00
committed by GitHub
parent 0f2e50bb87
commit 6599271bf5
73 changed files with 232 additions and 225 deletions

View File

@@ -25,7 +25,7 @@ void main() {
expectAsync1((List<String> commandLine) async {
return processRunner.runProcess(commandLine);
})(<String>['this_executable_better_not_exist_2857632534321']),
throwsA(const TypeMatcher<ProcessRunnerException>()));
throwsA(const isInstanceOf<ProcessRunnerException>()));
try {
await processRunner.runProcess(<String>['this_executable_better_not_exist_2857632534321']);
} on ProcessRunnerException catch (e) {
@@ -62,7 +62,7 @@ void main() {
expectAsync1((List<String> commandLine) async {
return processRunner.runProcess(commandLine);
})(<String>['echo', 'test']),
throwsA(const TypeMatcher<ProcessRunnerException>()));
throwsA(const isInstanceOf<ProcessRunnerException>()));
});
});
group('ArchiveCreator for $platformName', () {
@@ -204,7 +204,7 @@ void main() {
};
processManager.fakeResults = calls;
expect(expectAsync0(creator.initializeRepo),
throwsA(const TypeMatcher<ProcessRunnerException>()));
throwsA(const isInstanceOf<ProcessRunnerException>()));
});
});