This commit is contained in:
Dan Field 2020-01-06 13:30:21 -08:00 committed by GitHub
parent a0e5621956
commit ea799d97f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,10 +74,13 @@ void main() {
});
test('exit does not throw a StateError if overriden', () {
setExitFunctionForTests((int value) {});
try {
setExitFunctionForTests((int value) {});
expect(() => exit(0), returnsNormally);
restoreExitFunction();
expect(() => exit(0), returnsNormally);
} finally {
restoreExitFunction();
}
});
test('test_api defines the Declarer in a known place', () {