Skip to content

Commit c109b3c

Browse files
authored
Clean leaky test. (#149199)
Introduced by flutter/flutter#149006 To repro run: `flutter test /Users/polinach/_/flutter_dev/packages/flutter/test/material/text_button_test.dart --dart-define LEAK_TR` <img width="268" alt="Screenshot 2024-05-28 at 11 50 33�AM" src="https://github.com/flutter/flutter/assets/12115586/c1a1bf5e-4df4-4819-b897-b09021d3a07a">
1 parent df64ca0 commit c109b3c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/flutter/test/material/text_button_test.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2303,6 +2303,7 @@ void main() {
23032303

23042304
testWidgets('treats a hovering stylus like a mouse', (WidgetTester tester) async {
23052305
final FocusNode focusNode = FocusNode();
2306+
addTearDown(focusNode.dispose);
23062307
final ThemeData theme = ThemeData(useMaterial3: true);
23072308
bool hasBeenHovered = false;
23082309

0 commit comments

Comments
 (0)