From 8ef4d2ac494d10c5067a76e4f7f7513aa99856fc Mon Sep 17 00:00:00 2001 From: Alexander Dahlberg Date: Tue, 31 Aug 2021 02:46:02 +0200 Subject: [PATCH] Fixed leak and removed no-shuffle tag in test/widgets/scroll_aware_image_provider_test.dart (#88900) --- .../test/widgets/scroll_aware_image_provider_test.dart | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/flutter/test/widgets/scroll_aware_image_provider_test.dart b/packages/flutter/test/widgets/scroll_aware_image_provider_test.dart index e3bfa02b27..6f1bf8ad09 100644 --- a/packages/flutter/test/widgets/scroll_aware_image_provider_test.dart +++ b/packages/flutter/test/widgets/scroll_aware_image_provider_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:ui' as ui show Image; import 'package:flutter/widgets.dart'; @@ -374,7 +368,7 @@ void main() { expect(imageCache!.currentSize, 0); // Occupy the only slot in the cache with another image. - final TestImageProvider testImageProvider2 = TestImageProvider(testImage); + final TestImageProvider testImageProvider2 = TestImageProvider(testImage.clone()); testImageProvider2.complete(); await precacheImage(testImageProvider2, context.context!); expect(imageCache!.containsKey(testImageProvider), false);