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

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


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

diff --git a/tests/twisted/tubes/accept-muc-stream-tube.py b/tests/twisted/tubes/accept-muc-stream-tube.py
index b3e6f98..e2a4cab 100644
--- a/tests/twisted/tubes/accept-muc-stream-tube.py
+++ b/tests/twisted/tubes/accept-muc-stream-tube.py
@@ -224,7 +224,9 @@ def test(q, bus, conn, stream, bytestream_cls):
     assert muc_stream_node is not None
     assert muc_stream_node['tube'] == str(stream_tube_id)
 
-    result, si = create_si_reply(stream, event.stanza, 'chat at conf.localhost/test',
+    # set the real jid of the target as 'to' because the XMPP server changes
+    # it when delivering the IQ
+    result, si = create_si_reply(stream, event.stanza, 'test at localhost/Resource',
         bytestream.get_ns())
     si.addElement((ns.TUBES, 'tube'))
     stream.send(result)
-- 
1.5.6.5




More information about the telepathy-commits mailing list