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 christopherfujino committed Sep 27, 2023
1 parent b04b73e commit 24cb07f
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 24cb07f

Please sign in to comment.