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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,12 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // 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/foundation.dart';
import 'package:flutter/gestures.dart'; import 'package:flutter/gestures.dart';
import 'package:flutter_test/flutter_test.dart'; import 'package:flutter_test/flutter_test.dart';
@ -838,11 +832,11 @@ void main() {
}); });
tearDown(() { tearDown(() {
recognized.clear();
primary.dispose(); primary.dispose();
primary2.dispose(); primary2.dispose();
secondary.dispose(); secondary.dispose();
tertiary.dispose(); tertiary.dispose();
recognized.clear();
}); });
testGesture('A primary tap recognizer does not form competition with a secondary tap recognizer', (GestureTester tester) { testGesture('A primary tap recognizer does not form competition with a secondary tap recognizer', (GestureTester tester) {