[Telepathy-commits] [telepathy-gabble/master] offer-muc-stream-tube.py: use the real jid when sending the SI offer

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Tue Mar 17 09:43:15 PDT 2009


---
 tests/twisted/tubes/offer-muc-stream-tube.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/tests/twisted/tubes/offer-muc-stream-tube.py b/tests/twisted/tubes/offer-muc-stream-tube.py
index 9232c4e..6bc5a9a 100644
--- a/tests/twisted/tubes/offer-muc-stream-tube.py
+++ b/tests/twisted/tubes/offer-muc-stream-tube.py
@@ -218,7 +218,9 @@ def test(q, bus, conn, stream, bytestream_cls):
     bytestream = bytestream_cls(stream, q, 'alpha', 'chat at conf.localhost/bob',
         'chat at conf.localhost/test', True)
 
-    iq, si = create_si_offer(stream, bytestream.initiator, bytestream.target,
+    # set the real jid of the target as 'to' because the XMPP server changes
+    # it when delivering the IQ
+    iq, si = create_si_offer(stream, bytestream.initiator, 'test at localhost/Resource',
         bytestream.stream_id, ns.TUBES, [bytestream.get_ns()])
 
     stream_node = si.addElement((ns.TUBES, 'muc-stream'))
-- 
1.5.6.5




More information about the telepathy-commits mailing list