[Telepathy-commits] [telepathy-salut/master] test-request-muc.py: no need to use call_async for EnsureChannel

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Thu Nov 27 09:51:45 PST 2008


---
 tests/twisted/avahi/test-request-muc.py |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/tests/twisted/avahi/test-request-muc.py b/tests/twisted/avahi/test-request-muc.py
index 601033b..9eb22d0 100644
--- a/tests/twisted/avahi/test-request-muc.py
+++ b/tests/twisted/avahi/test-request-muc.py
@@ -135,16 +135,13 @@ def test(q, bus, conn):
     assert old_sig.args[4] == True        # suppress handler
 
     # ensure roomlist channel
-    call_async(q, requestotron, 'EnsureChannel',
+    yours, ensured_path, ensured_props = ret.value = requestotron.EnsureChannel(
             { tp_name_prefix + '.Channel.ChannelType':
                 CHANNEL_TYPE_TEXT,
               tp_name_prefix + '.Channel.TargetHandleType': HT_ROOM,
               tp_name_prefix + '.Channel.TargetHandle': handle,
               })
 
-    ret = q.expect('dbus-return', method='EnsureChannel')
-    yours, ensured_path, ensured_props = ret.value
-
     assert not yours
     assert ensured_path == path2, (ensured_path, path2)
 
-- 
1.5.6.5




More information about the Telepathy-commits mailing list