aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2016-02-10 14:48:24 -0600
committerRobert Tari <robert@tari.in>2021-08-30 02:13:08 +0200
commitc1ab79e690652e6e1136154c2e5c70b3ff4e5d6b (patch)
treefa77d15d962c962119fa3165333d468f6d14e586
parent7155cdb14a651d60d0e9576283836848e205d258 (diff)
downloadayatana-indicator-datetime-c1ab79e690652e6e1136154c2e5c70b3ff4e5d6b.tar.gz
ayatana-indicator-datetime-c1ab79e690652e6e1136154c2e5c70b3ff4e5d6b.tar.bz2
ayatana-indicator-datetime-c1ab79e690652e6e1136154c2e5c70b3ff4e5d6b.zip
add a DBusMock test Fixture with helper functions to wait for arbitrary bus method calls
-rw-r--r--tests/notification-fixture.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/notification-fixture.h b/tests/notification-fixture.h
index b381b93..23329aa 100644
--- a/tests/notification-fixture.h
+++ b/tests/notification-fixture.h
@@ -306,20 +306,6 @@ protected:
g_clear_object(&powerd_mock);
g_clear_object(&notify_mock);
g_clear_object(&as_mock);
- g_clear_object(&service);
- g_object_unref(session_bus);
- g_object_unref(system_bus);
-
- // wait a little while for the scaffolding to shut down,
- // but don't block on it forever...
- unsigned int cleartry = 0;
- while (((system_bus != nullptr) || (session_bus != nullptr)) && (cleartry < 50))
- {
- g_usleep(100000);
- while (g_main_context_pending(nullptr))
- g_main_context_iteration(nullptr, true);
- cleartry++;
- }
super::TearDown();
}