Ignore body_might_complete_normally_catch_error violations (#105795)
This commit is contained in:
@@ -141,6 +141,9 @@ class TestDefaultBinaryMessenger extends BinaryMessenger {
|
||||
if (resultFuture != null) {
|
||||
_pendingMessages.add(resultFuture);
|
||||
resultFuture
|
||||
// TODO(srawlins): Fix this static issue,
|
||||
// https://github.com/flutter/flutter/issues/105750.
|
||||
// ignore: body_might_complete_normally_catch_error
|
||||
.catchError((Object error) { /* errors are the responsibility of the caller */ })
|
||||
.whenComplete(() => _pendingMessages.remove(resultFuture));
|
||||
}
|
||||
|
||||
@@ -45,6 +45,9 @@ void main() {
|
||||
final BinaryMessenger delegate = TestDelegate();
|
||||
final Future<ByteData?>? future = delegate.send('', null);
|
||||
expect(future, isNotNull);
|
||||
// TODO(srawlins): Fix this static issue,
|
||||
// https://github.com/flutter/flutter/issues/105750.
|
||||
// ignore: body_might_complete_normally_catch_error
|
||||
await future!.catchError((Object error) { });
|
||||
try {
|
||||
await TestDefaultBinaryMessenger(delegate).send('', null);
|
||||
|
||||
Reference in New Issue
Block a user