diff --git a/packages/flutter/test/foundation/memory_allocations_test.dart b/packages/flutter/test/foundation/memory_allocations_test.dart index e802531305..537061ad72 100644 --- a/packages/flutter/test/foundation/memory_allocations_test.dart +++ b/packages/flutter/test/foundation/memory_allocations_test.dart @@ -210,12 +210,8 @@ Future _activateFlutterObjectsAndReturnCountOfEvents() async { changeNotifier.dispose(); count++; picture.dispose(); count++; - // TODO(polina-c): Remove the condition after - // https://github.com/flutter/flutter/issues/110599 is fixed. - if (!kIsWeb) { - final Image image = await _createImage(); count++; count++; count++; - image.dispose(); count++; - } + final Image image = await _createImage(); count++; count++; count++; + image.dispose(); count++; return count; } diff --git a/packages/flutter/test_release/foundation/memory_allocations_test.dart b/packages/flutter/test_release/foundation/memory_allocations_test.dart index cac6c140bc..21886e3881 100644 --- a/packages/flutter/test_release/foundation/memory_allocations_test.dart +++ b/packages/flutter/test_release/foundation/memory_allocations_test.dart @@ -57,12 +57,8 @@ Future _activateFlutterObjects(WidgetTester tester) async { changeNotifier.dispose(); picture.dispose(); - // TODO(polina-c): Remove the condition after - // https://github.com/flutter/flutter/issues/110599 is fixed. - if (!kIsWeb) { - final Image image = await _createImage(); - image.dispose(); - } + final Image image = await _createImage(); + image.dispose(); } Future _createImage() async {