forked from firka/flutter
Handle uncaught error for warnIfSlow (#56418)
This commit is contained in:
@@ -665,6 +665,16 @@ void main() {
|
||||
expect(error.message, 'Error in Flutter application: {message: This is a failure}');
|
||||
}
|
||||
});
|
||||
|
||||
test('uncaught remote error', () async {
|
||||
when(mockIsolate.invokeExtension(any, any)).thenAnswer((Invocation i) {
|
||||
return Future<Map<String, dynamic>>.error(
|
||||
rpc.RpcException(9999, 'test error'),
|
||||
);
|
||||
});
|
||||
|
||||
expect(driver.waitFor(find.byTooltip('foo')), throwsDriverError);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user