From 4e1711135d4208fa80f2f722527e994ceed4715a Mon Sep 17 00:00:00 2001 From: Alexander Dahlberg Date: Tue, 31 Aug 2021 00:26:04 +0200 Subject: [PATCH] Fixed leak and removed no-shuffle tag in test/widgets/routes_test.dart (#88881) --- packages/flutter/test/widgets/routes_test.dart | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/flutter/test/widgets/routes_test.dart b/packages/flutter/test/widgets/routes_test.dart index a6506796395..2c22ed83d44 100644 --- a/packages/flutter/test/widgets/routes_test.dart +++ b/packages/flutter/test/widgets/routes_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 'dart:collection'; import 'package:flutter/material.dart'; @@ -461,6 +455,9 @@ void main() { [ ], ); + await tester.pumpWidget(Container()); + expect(routes.isEmpty, isTrue); + results.clear(); }); group('PageRouteObserver', () {