[telepathy-gabble/master] sync_dbus(): ensure that the proxy has a unique name

Dafydd Harries dafydd.harries at collabora.co.uk
Fri Aug 28 11:02:04 PDT 2009


Otherwise we might service-launch the CM after it's died, which we don't want.
---
 tests/twisted/servicetest.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/tests/twisted/servicetest.py b/tests/twisted/servicetest.py
index b0a6295..3f4fb24 100644
--- a/tests/twisted/servicetest.py
+++ b/tests/twisted/servicetest.py
@@ -269,6 +269,8 @@ def call_async(test, proxy, method, *args, **kw):
 
 def sync_dbus(bus, q, conn):
     # Dummy D-Bus method call
+    # This won't do the right thing unless the proxy has a unique name.
+    assert conn.object.bus_name.startswith(':')
     root_object = bus.get_object(conn.object.bus_name, '/')
     call_async(
         q, dbus.Interface(root_object, 'org.freedesktop.DBus.Peer'), 'Ping')
-- 
1.5.6.5




More information about the telepathy-commits mailing list