[Telepathy-commits] [telepathy-gabble/master] gadget-invite: be more restrictif on a stream-iq elem to be sure to catch the right one

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Wed Oct 1 06:55:45 PDT 2008


---
 tests/twisted/olpc/gadget-invite.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/tests/twisted/olpc/gadget-invite.py b/tests/twisted/olpc/gadget-invite.py
index fe0600e..008f445 100644
--- a/tests/twisted/olpc/gadget-invite.py
+++ b/tests/twisted/olpc/gadget-invite.py
@@ -79,7 +79,8 @@ def test(q, bus, conn, stream):
     call_async (q, buddy_info_iface, 'SetActivities', [("roomid", room_handle)])
 
     # pubsub activity iq
-    event = q.expect('stream-iq')
+    event = q.expect('stream-iq', iq_type='set', query_name='pubsub',
+        query_ns=NS_PUBSUB)
     acknowledge_iq(stream, event.stanza)
 
     event = q.expect('dbus-return', method='SetActivities')
-- 
1.5.6.5



More information about the Telepathy-commits mailing list