summaryrefslogtreecommitdiff
path: root/tests/twisted/text/destroy.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/twisted/text/destroy.py')
-rw-r--r--tests/twisted/text/destroy.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/twisted/text/destroy.py b/tests/twisted/text/destroy.py
index 5860219..aac3f94 100644
--- a/tests/twisted/text/destroy.py
+++ b/tests/twisted/text/destroy.py
@@ -15,10 +15,7 @@ def test(q, bus, conn, stream):
self_handle = conn.Properties.Get(cs.CONN, "SelfHandle")
jid = 'foo@bar.com'
- call_async(q, conn, 'RequestHandles', 1, [jid])
-
- event = q.expect('dbus-return', method='RequestHandles')
- foo_handle = event.value[0][0]
+ foo_handle = conn.get_contact_handle_sync(jid)
call_async(q, conn, 'RequestChannel',
'org.freedesktop.Telepathy.Channel.Type.Text', 1, foo_handle, True)