From 49dbcaf901fb3d5fba29f616d1e57a286e85bae8 Mon Sep 17 00:00:00 2001 From: Iain Lane Date: Thu, 3 Sep 2015 11:02:27 +0100 Subject: Make test-live-actions quit itself once the tz has been changed, the mock no longer does this --- tests/test-live-actions.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/test-live-actions.cpp b/tests/test-live-actions.cpp index 9c74813..9f17001 100644 --- a/tests/test-live-actions.cpp +++ b/tests/test-live-actions.cpp @@ -37,6 +37,10 @@ TEST_F(TimedateFixture, SetLocation) EXPECT_NE(expected, m_state->settings->timezone_name.get()); m_actions->set_location(tzid, name); + m_state->settings->timezone_name.changed().connect( + [this](const std::string&){ + g_main_loop_quit(loop); + }); g_main_loop_run(loop); EXPECT_EQ(attempted_tzid, tzid); wait_msec(); -- cgit v1.2.3