summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/twisted/servicetest.py18
1 files changed, 10 insertions, 8 deletions
diff --git a/tests/twisted/servicetest.py b/tests/twisted/servicetest.py
index 86212f32..422e868d 100644
--- a/tests/twisted/servicetest.py
+++ b/tests/twisted/servicetest.py
@@ -576,14 +576,16 @@ def call_async(test, proxy, method, *args, **kw):
kw.update({'reply_handler': reply_func, 'error_handler': error_func})
method_proxy(*args, **kw)
-def sync_dbus(bus, q, proxy):
- # Dummy D-Bus method call. We can't use DBus.Peer.Ping() because libdbus
- # replies to that message immediately, rather than handing it up to
- # dbus-glib and thence the application, which means that Ping()ing the
- # application doesn't ensure that it's processed all D-Bus messages prior
- # to our ping.
- call_async(q, dbus.Interface(proxy, cs.TESTS), 'DummySyncDBus')
- q.expect('dbus-error', method='DummySyncDBus')
+def sync_dbus(bus, q, conn):
+ # We need to use functionality that is actually implemented by tp-glib,
+ # because unimplemented and built-in functionality in GDBus can jump
+ # the queue <https://bugzilla.gnome.org/show_bug.cgi?id=726259>.
+ #
+ # FIXME: Mission Control tests can't use this implementation, they will
+ # need a version that can operate on a MC object
+ call_async(q, dbus.Interface(conn, cs.PROPERTIES_IFACE),
+ 'Get', cs.CONN, 'Status')
+ q.expect('dbus-return', method='Get')
class ProxyWrapper:
def __init__(self, object, default, others={}):