Skip to content

Commit

Permalink
Fix leaky test. (#148788)
Browse files Browse the repository at this point in the history
  • Loading branch information
polina-c committed May 21, 2024
1 parent 7727ff4 commit 654a5b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/flutter/test/widgets/focus_manager_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1499,7 +1499,9 @@ void main() {

testWidgets('Scopes can be focused without sending focus to descendants.', (WidgetTester tester) async {
final FocusScopeNode scopeNode = FocusScopeNode(debugLabel: 'Scope1',);
addTearDown(scopeNode.dispose);
final FocusNode childFocusNode = FocusNode(debugLabel: 'Child1',);
addTearDown(childFocusNode.dispose);
await tester.pumpWidget(
FocusScope.withExternalFocusNode(
focusScopeNode: scopeNode,
Expand Down

0 comments on commit 654a5b3

Please sign in to comment.