Unverified Commit ea799d97 authored by Dan Field's avatar Dan Field Committed by GitHub

.. (#48263)

parent a0e56219
...@@ -74,10 +74,13 @@ void main() { ...@@ -74,10 +74,13 @@ void main() {
}); });
test('exit does not throw a StateError if overriden', () { test('exit does not throw a StateError if overriden', () {
setExitFunctionForTests((int value) {}); try {
setExitFunctionForTests((int value) {});
expect(() => exit(0), returnsNormally); expect(() => exit(0), returnsNormally);
restoreExitFunction(); } finally {
restoreExitFunction();
}
}); });
test('test_api defines the Declarer in a known place', () { test('test_api defines the Declarer in a known place', () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment