Clean up leaky test. (#151131)

This commit is contained in:
Polina Cherkasova
2024-07-09 15:54:17 -07:00
committed by GitHub
parent 5f7564d989
commit 745d2b4d2a

View File

@@ -3586,6 +3586,7 @@ void main() {
testWidgets('Drag and drop - unmounting overlay ends drag gracefully', (WidgetTester tester) async {
final ValueNotifier<bool> mountedNotifier = ValueNotifier<bool>(true);
addTearDown(mountedNotifier.dispose);
await tester.pumpWidget(ValueListenableBuilder<bool>(
valueListenable: mountedNotifier,