Fix leaky test. (#153798)

This commit is contained in:
Polina Cherkasova
2024-08-20 16:14:15 -07:00
committed by GitHub
parent 82b4c6eabd
commit 528a2c68da

View File

@@ -4288,6 +4288,7 @@ void main() {
testWidgets('If requestFocus is false, the original focus should be preserved upon menu appearance.', (WidgetTester tester) async {
final FocusNode fieldFocusNode = FocusNode();
addTearDown(fieldFocusNode.dispose);
await tester.pumpWidget(
MaterialApp(
home: Scaffold(