Skip to content

Commit

Permalink
Force processing events
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll committed Aug 23, 2023
1 parent 04ed261 commit 63ef438
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/MainWindow_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,8 @@ TEST(MainWindowTest, GZ_UTILS_TEST_ENABLED_ONLY_ON_LINUX(ApplyConfig))
auto mainWindow = new MainWindow;
ASSERT_NE(nullptr, mainWindow);

app.processEvents(QEventLoop::ExcludeUserInputEvents);

// Default config
{
auto c = mainWindow->CurrentWindowConfig();
Expand Down Expand Up @@ -750,7 +752,7 @@ TEST(MainWindowTest, GZ_UTILS_TEST_ENABLED_ONLY_ON_LINUX(ApplyConfig))
EXPECT_TRUE(mainWindow->ApplyConfig(c));
}

std::this_thread::sleep_for(std::chrono::milliseconds(50));
app.processEvents(QEventLoop::ExcludeUserInputEvents);

// Check applied config
{
Expand Down

0 comments on commit 63ef438

Please sign in to comment.