Fixed leak and removed no-shuffle tag in test/gestures/tap_test.dart (#88342)

This commit is contained in:
Swiftaxe
2021-08-17 19:07:05 +02:00
committed by GitHub
parent 1079136fde
commit 2f46d36bf4

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=1000"
@Tags(<String>['no-shuffle'])
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter_test/flutter_test.dart';
@@ -838,11 +832,11 @@ void main() {
});
tearDown(() {
recognized.clear();
primary.dispose();
primary2.dispose();
secondary.dispose();
tertiary.dispose();
recognized.clear();
});
testGesture('A primary tap recognizer does not form competition with a secondary tap recognizer', (GestureTester tester) {