aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test-snap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-snap.cpp b/tests/test-snap.cpp
index 1904bef..afee297 100644
--- a/tests/test-snap.cpp
+++ b/tests/test-snap.cpp
@@ -347,8 +347,8 @@ protected:
while (((system_bus != nullptr) || (session_bus != nullptr)) && (cleartry < 50))
{
g_usleep(100000);
- while (g_main_pending())
- g_main_iteration(true);
+ while (g_main_context_pending(nullptr))
+ g_main_context_iteration(nullptr, true);
cleartry++;
}