Skip to content

Commit 49f1a6b

Browse files
authored
Fix failing test at master. (#135394)
1 parent 797d34e commit 49f1a6b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/flutter/test/widgets/routes_test.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,8 +549,11 @@ void main() {
549549

550550
testWidgetsWithLeakTracking('Can autofocus a TextField nested in a Focus in a route.', (WidgetTester tester) async {
551551
final TextEditingController controller = TextEditingController();
552+
addTearDown(controller.dispose);
552553

553554
final FocusNode focusNode = FocusNode(debugLabel: 'Test Node');
555+
addTearDown(focusNode.dispose);
556+
554557
await tester.pumpWidget(
555558
Material(
556559
child: MaterialApp(

0 commit comments

Comments
 (0)