summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/dbus/channel-request.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/dbus/channel-request.c b/tests/dbus/channel-request.c
index a56eccad8..6c75836f3 100644
--- a/tests/dbus/channel-request.c
+++ b/tests/dbus/channel-request.c
@@ -250,6 +250,9 @@ test_succeeded (Test *test,
g_signal_connect (test->cr, "succeeded-with-channel",
G_CALLBACK (succeeded_with_channel_cb), test);
+ /* sync up both sockets to ensure that the match rules are in place */
+ tp_tests_proxy_run_until_dbus_queue_processed (test->cr);
+
props = g_hash_table_new (NULL, NULL);
tp_svc_channel_request_emit_succeeded_with_channel (test->cr_service,
@@ -288,6 +291,9 @@ test_failed (Test *test,
g_signal_connect_swapped (test->cr, "succeeded", G_CALLBACK (succeeded_cb),
test);
+ /* sync up both sockets to ensure that the match rules are in place */
+ tp_tests_proxy_run_until_dbus_queue_processed (test->cr);
+
tp_svc_channel_request_emit_failed (test->cr_service,
TP_ERROR_STR_NOT_YOURS, "lalala");