.. (#48263)
This commit is contained in:
parent
a0e5621956
commit
ea799d97f4
@ -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', () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user