From 1949da6462421267b5ed431d6b3f111fab4049b3 Mon Sep 17 00:00:00 2001 From: Brandon DeRosier Date: Tue, 8 Feb 2022 22:50:13 -0800 Subject: [PATCH] De-flake CanCreateShellsWithMetalBackend (flutter/engine#31343) --- engine/src/flutter/shell/common/shell_unittests.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/src/flutter/shell/common/shell_unittests.cc b/engine/src/flutter/shell/common/shell_unittests.cc index 843b3c0a69..8df8ec96aa 100644 --- a/engine/src/flutter/shell/common/shell_unittests.cc +++ b/engine/src/flutter/shell/common/shell_unittests.cc @@ -3206,8 +3206,8 @@ TEST_F(ShellTest, CanCreateShellsWithGLBackend) { ); ASSERT_NE(shell, nullptr); ASSERT_TRUE(shell->IsSetup()); - PlatformViewNotifyCreated(shell.get()); auto configuration = RunConfiguration::InferFromSettings(settings); + PlatformViewNotifyCreated(shell.get()); configuration.SetEntrypoint("emptyMain"); RunEngine(shell.get(), std::move(configuration)); PumpOneFrame(shell.get()); @@ -3230,8 +3230,8 @@ TEST_F(ShellTest, CanCreateShellsWithVulkanBackend) { ); ASSERT_NE(shell, nullptr); ASSERT_TRUE(shell->IsSetup()); - PlatformViewNotifyCreated(shell.get()); auto configuration = RunConfiguration::InferFromSettings(settings); + PlatformViewNotifyCreated(shell.get()); configuration.SetEntrypoint("emptyMain"); RunEngine(shell.get(), std::move(configuration)); PumpOneFrame(shell.get()); @@ -3254,8 +3254,8 @@ TEST_F(ShellTest, CanCreateShellsWithMetalBackend) { ); ASSERT_NE(shell, nullptr); ASSERT_TRUE(shell->IsSetup()); - PlatformViewNotifyCreated(shell.get()); auto configuration = RunConfiguration::InferFromSettings(settings); + PlatformViewNotifyCreated(shell.get()); configuration.SetEntrypoint("emptyMain"); RunEngine(shell.get(), std::move(configuration)); PumpOneFrame(shell.get());