From cc5902b9d8550999cea1d05e5fa7546776008462 Mon Sep 17 00:00:00 2001 From: Ryan Macnak Date: Tue, 7 Nov 2017 09:26:45 -0800 Subject: [PATCH] Fix some tests to be happy with proper microtask scheduling. (#12900) (I suspect this accounts the sets of microtasks from scheduleWarmUpFrame now running separately.) Issue https://github.com/flutter/flutter/issues/9998 --- packages/flutter/test/foundation/service_extensions_test.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/flutter/test/foundation/service_extensions_test.dart b/packages/flutter/test/foundation/service_extensions_test.dart index 7da776d924..815b922b84 100644 --- a/packages/flutter/test/foundation/service_extensions_test.dart +++ b/packages/flutter/test/foundation/service_extensions_test.dart @@ -75,6 +75,7 @@ Future> hasReassemble(Future> pendingRes await binding.flushMicrotasks(); expect(binding.frameScheduled, isTrue); expect(completed, isFalse); + await binding.flushMicrotasks(); await binding.doFrame(); await binding.flushMicrotasks(); expect(completed, isTrue); @@ -411,6 +412,7 @@ void main() { await binding.flushMicrotasks(); expect(binding.frameScheduled, isTrue); expect(completed, false); + await binding.flushMicrotasks(); await binding.doFrame(); await binding.flushMicrotasks(); expect(completed, true);