summaryrefslogtreecommitdiff
path: root/tests/twisted/vcard/set-set-disconnect.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/twisted/vcard/set-set-disconnect.py')
-rw-r--r--tests/twisted/vcard/set-set-disconnect.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/twisted/vcard/set-set-disconnect.py b/tests/twisted/vcard/set-set-disconnect.py
index e35ee9744..6f5a54eab 100644
--- a/tests/twisted/vcard/set-set-disconnect.py
+++ b/tests/twisted/vcard/set-set-disconnect.py
@@ -8,6 +8,9 @@ from gabbletest import exec_test, acknowledge_iq, expect_and_handle_get_vcard, s
import constants as cs
def test(q, bus, conn, stream):
+ cm = bus.get_object(cs.CM + '.gabble',
+ '/' + cs.CM.replace('.', '/') + '/gabble')
+
expect_and_handle_get_vcard(q, stream)
sync_stream(q, stream)
@@ -23,7 +26,7 @@ def test(q, bus, conn, stream):
q.expect('dbus-error', method='SetAvatar', name=cs.NOT_AVAILABLE)
q.expect('dbus-error', method='SetAvatar', name=cs.NOT_AVAILABLE)
- sync_dbus(bus, q, conn)
+ sync_dbus(bus, q, cm)
if __name__ == '__main__':
exec_test(test)