From 6c7ddb859dc56e4f01fe7bd9f318689db3f5ee2e Mon Sep 17 00:00:00 2001 From: hangyu Date: Tue, 12 Sep 2023 18:52:41 -0700 Subject: [PATCH] Update BottomSheetTest (#134562) --- packages/flutter/test/material/bottom_sheet_test.dart | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/packages/flutter/test/material/bottom_sheet_test.dart b/packages/flutter/test/material/bottom_sheet_test.dart index fa5e91d1a9..1fe54d95d8 100644 --- a/packages/flutter/test/material/bottom_sheet_test.dart +++ b/packages/flutter/test/material/bottom_sheet_test.dart @@ -1673,8 +1673,7 @@ void main() { }); group('Modal BottomSheet avoids overlapping display features', () { - testWidgetsWithLeakTracking('positioning using anchorPoint', - (WidgetTester tester) async { + testWidgetsWithLeakTracking('positioning using anchorPoint', (WidgetTester tester) async { await tester.pumpWidget( MaterialApp( builder: (BuildContext context, Widget? child) { @@ -1710,12 +1709,7 @@ void main() { // Should take the right side of the screen expect(tester.getTopLeft(find.byType(Placeholder)).dx, 410); expect(tester.getBottomRight(find.byType(Placeholder)).dx, 800); - }, - leakTrackingTestConfig: const LeakTrackingTestConfig( - // TODO(polina-c): remove after fix - // https://github.com/flutter/flutter/issues/133594 - notDisposedAllowList: {'ValueNotifier': 1} - )); + }); testWidgetsWithLeakTracking('positioning using Directionality', (WidgetTester tester) async { await tester.pumpWidget(