Skip to content

Commit

Permalink
Clean leaky test. (#149199)
Browse files Browse the repository at this point in the history
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">
  • Loading branch information
polina-c authored May 28, 2024
1 parent df64ca0 commit c109b3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/flutter/test/material/text_button_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2303,6 +2303,7 @@ void main() {

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

Expand Down

0 comments on commit c109b3c

Please sign in to comment.