From 086cfcb1334cdfc1e0037de96902596f355e04c3 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Thu, 18 Oct 2018 12:30:16 -0700 Subject: [PATCH] Add a delay to the Gallery navigation memory test to give Dart an opportunity to GC (#23250) See https://github.com/flutter/flutter/issues/23171 --- examples/flutter_gallery/test_memory/memory_nav.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/flutter_gallery/test_memory/memory_nav.dart b/examples/flutter_gallery/test_memory/memory_nav.dart index b5aad66a81..8b828a76b6 100644 --- a/examples/flutter_gallery/test_memory/memory_nav.dart +++ b/examples/flutter_gallery/test_memory/memory_nav.dart @@ -79,6 +79,7 @@ Future main() async { debugPrint('Backing out...'); await controller.tap(find.byTooltip('Back')); await endOfAnimation(); + await Future.delayed(const Duration(milliseconds: 50)); } debugPrint('==== MEMORY BENCHMARK ==== DONE ====');