Skip to content

Commit 8ef4d2a

Browse files
authored
Fixed leak and removed no-shuffle tag in test/widgets/scroll_aware_image_provider_test.dart (flutter#88900)
1 parent 6784ebc commit 8ef4d2a

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

packages/flutter/test/widgets/scroll_aware_image_provider_test.dart

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
// TODO(gspencergoog): Remove this tag once this test's state leaks/test
6-
// dependencies have been fixed.
7-
// https://github.com/flutter/flutter/issues/85160
8-
// Fails with "flutter test --test-randomize-ordering-seed=123"
9-
@Tags(<String>['no-shuffle'])
10-
115
import 'dart:ui' as ui show Image;
126

137
import 'package:flutter/widgets.dart';
@@ -374,7 +368,7 @@ void main() {
374368
expect(imageCache!.currentSize, 0);
375369

376370
// Occupy the only slot in the cache with another image.
377-
final TestImageProvider testImageProvider2 = TestImageProvider(testImage);
371+
final TestImageProvider testImageProvider2 = TestImageProvider(testImage.clone());
378372
testImageProvider2.complete();
379373
await precacheImage(testImageProvider2, context.context!);
380374
expect(imageCache!.containsKey(testImageProvider), false);

0 commit comments

Comments
 (0)