mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Mark ReastaurationManager not disposed (#134832)
This commit is contained in:
parent
237db2bb2a
commit
a0406cccb1
@ -18,7 +18,7 @@ void main() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
group('RestorationManager', () {
|
group('RestorationManager', () {
|
||||||
testWidgets('root bucket retrieval', (WidgetTester tester) async {
|
testWidgetsWithLeakTracking('root bucket retrieval', (WidgetTester tester) async {
|
||||||
final List<MethodCall> callsToEngine = <MethodCall>[];
|
final List<MethodCall> callsToEngine = <MethodCall>[];
|
||||||
final Completer<Map<dynamic, dynamic>> result = Completer<Map<dynamic, dynamic>>();
|
final Completer<Map<dynamic, dynamic>> result = Completer<Map<dynamic, dynamic>>();
|
||||||
tester.binding.defaultBinaryMessenger.setMockMethodCallHandler(SystemChannels.restoration, (MethodCall call) {
|
tester.binding.defaultBinaryMessenger.setMockMethodCallHandler(SystemChannels.restoration, (MethodCall call) {
|
||||||
@ -62,7 +62,11 @@ void main() {
|
|||||||
});
|
});
|
||||||
expect(synchronousBucket, isNotNull);
|
expect(synchronousBucket, isNotNull);
|
||||||
expect(synchronousBucket, same(rootBucket));
|
expect(synchronousBucket, same(rootBucket));
|
||||||
});
|
},
|
||||||
|
// TODO(NobodyForNothing): Remove after fixing and cover remaining file
|
||||||
|
// with leak tests https://github.com/flutter/flutter/issues/134831
|
||||||
|
leakTrackingTestConfig: const LeakTrackingTestConfig(notDisposedAllowList:
|
||||||
|
<String, int?>{'RestorationManager': 1}));
|
||||||
|
|
||||||
testWidgets('root bucket received from engine before retrieval', (WidgetTester tester) async {
|
testWidgets('root bucket received from engine before retrieval', (WidgetTester tester) async {
|
||||||
SystemChannels.restoration.setMethodCallHandler(null);
|
SystemChannels.restoration.setMethodCallHandler(null);
|
||||||
|
Loading…
Reference in New Issue
Block a user