Skip to content

Commit

Permalink
Add code to let UI tick when running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
csciguy8 committed Aug 29, 2023
1 parent 12b9c6d commit fd2da60
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Source/CesiumRuntime/Private/Tests/CesiumLoadTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ bool tickWorldUntil(
ENamedThreads::GameThread);
FTSTicker::GetCoreTicker().Tick(frameElapsedTime);

// Let UI update
// Not absolutely necessary, but convenient when running the tests
// from inside the editor, so the UI doesn't appear frozen
FSlateApplication::Get().PumpMessages();
FSlateApplication::Get().Tick();

if (breakFunction(context))
return false;

Expand Down

0 comments on commit fd2da60

Please sign in to comment.