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
This commit is contained in:
Jason Simmons 2018-10-18 12:30:16 -07:00 committed by GitHub
parent 7fbb5b9f32
commit 086cfcb133
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,6 +79,7 @@ Future<void> main() async {
debugPrint('Backing out...');
await controller.tap(find.byTooltip('Back'));
await endOfAnimation();
await Future<void>.delayed(const Duration(milliseconds: 50));
}
debugPrint('==== MEMORY BENCHMARK ==== DONE ====');