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.
This commit is contained in:
Alexander Dahlberg
2021-08-23 19:02:21 +02:00
committed by GitHub
parent 8789d2135d
commit 60ed5cc8e4

View File

@@ -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(<String>['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 <String>['down', 'start', 'move']);
gesture.dispose();
});
});