Skip to content

Commit

Permalink
Fix failing test at master. (flutter#135394)
Browse files Browse the repository at this point in the history
  • Loading branch information
polina-c authored and Mairramer committed Oct 10, 2023
1 parent eb84745 commit 8268f3a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/flutter/test/widgets/routes_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -549,8 +549,11 @@ void main() {

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

final FocusNode focusNode = FocusNode(debugLabel: 'Test Node');
addTearDown(focusNode.dispose);

await tester.pumpWidget(
Material(
child: MaterialApp(
Expand Down

0 comments on commit 8268f3a

Please sign in to comment.