From 9b4556331ba58053f913502b699382fb54d802ec Mon Sep 17 00:00:00 2001 From: George Wright Date: Wed, 1 Apr 2020 13:54:15 -0700 Subject: [PATCH] Flush the session after updating the scene --- engine/src/flutter/flow/layers/fuchsia_layer_unittests.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engine/src/flutter/flow/layers/fuchsia_layer_unittests.cc b/engine/src/flutter/flow/layers/fuchsia_layer_unittests.cc index 2a859226ab..ef72830fdf 100644 --- a/engine/src/flutter/flow/layers/fuchsia_layer_unittests.cc +++ b/engine/src/flutter/flow/layers/fuchsia_layer_unittests.cc @@ -590,6 +590,8 @@ TEST_F(FuchsiaLayerTest, PhysicalShapeLayersAndChildSceneLayers) { // against the list above. root->UpdateScene(*(test_context->scene_update_context)); + test_context->session->Flush(); + // Run loop until idle, so that the Session receives and processes // its method calls. async_loop_run_until_idle( @@ -751,6 +753,8 @@ TEST_F(FuchsiaLayerTest, Opacity) { // commands against the list above. root->UpdateScene(*(test_context->scene_update_context)); + test_context->session->Flush(); + // Run loop until idle, so that the Session receives and processes // its method calls. async_loop_run_until_idle(