Skip to content

Commit 528a2c6

Browse files
authored
Fix leaky test. (#153798)
1 parent 82b4c6e commit 528a2c6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/flutter/test/material/popup_menu_test.dart

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

42894289
testWidgets('If requestFocus is false, the original focus should be preserved upon menu appearance.', (WidgetTester tester) async {
42904290
final FocusNode fieldFocusNode = FocusNode();
4291+
addTearDown(fieldFocusNode.dispose);
42914292
await tester.pumpWidget(
42924293
MaterialApp(
42934294
home: Scaffold(

0 commit comments

Comments
 (0)