[telepathy-gabble/master] make sync_dbus() call Ping() instead of InspectHandles()
Dafydd Harries
dafydd.harries at collabora.co.uk
Fri Aug 28 10:09:12 PDT 2009
This means that the CM can be synced with after the connection has been
destroyed.
---
tests/twisted/servicetest.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/tests/twisted/servicetest.py b/tests/twisted/servicetest.py
index c2f5917..b0a6295 100644
--- a/tests/twisted/servicetest.py
+++ b/tests/twisted/servicetest.py
@@ -269,9 +269,10 @@ def call_async(test, proxy, method, *args, **kw):
def sync_dbus(bus, q, conn):
# Dummy D-Bus method call
- call_async(q, conn, "InspectHandles", 1, [])
-
- event = q.expect('dbus-return', method='InspectHandles')
+ root_object = bus.get_object(conn.object.bus_name, '/')
+ call_async(
+ q, dbus.Interface(root_object, 'org.freedesktop.DBus.Peer'), 'Ping')
+ q.expect('dbus-return', method='Ping')
class ProxyWrapper:
def __init__(self, object, default, others):
--
1.5.6.5
More information about the telepathy-commits
mailing list