From 60ed5cc8e4f466a5ada4b460530f9a9fbd5ba504 Mon Sep 17 00:00:00 2001 From: Alexander Dahlberg Date: Mon, 23 Aug 2021 19:02:21 +0200 Subject: [PATCH] Fixed leak and removed no-shuffle tag in long_press_test.dart (#88373) Fixes test/gestures/long_press_test.dart of #85160 The LongPressGestureRecognizer in test 'non-allowed pointer does not inadvertently reset the recognizer' was not disposed breaking a lot of other tests. --- packages/flutter/test/gestures/long_press_test.dart | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/flutter/test/gestures/long_press_test.dart b/packages/flutter/test/gestures/long_press_test.dart index e3f3880025..9dae18658e 100644 --- a/packages/flutter/test/gestures/long_press_test.dart +++ b/packages/flutter/test/gestures/long_press_test.dart @@ -2,12 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// TODO(gspencergoog): Remove this tag once this test's state leaks/test -// dependencies have been fixed. -// https://github.com/flutter/flutter/issues/85160 -// Fails with "flutter test --test-randomize-ordering-seed=123" -@Tags(['no-shuffle']) - import 'package:flutter/gestures.dart'; import 'package:flutter_test/flutter_test.dart'; @@ -306,6 +300,7 @@ void main() { position: Offset(15, 15), )); expect(recognized, const ['down', 'start', 'move']); + gesture.dispose(); }); });