[telepathy-gabble/master] connect/test-twice.py: make_stream returns the port too, not only the stream

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Tue Jul 21 03:53:38 PDT 2009


---
 tests/twisted/connect/test-twice.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/twisted/connect/test-twice.py b/tests/twisted/connect/test-twice.py
index 3d28ab9..2ce6308 100644
--- a/tests/twisted/connect/test-twice.py
+++ b/tests/twisted/connect/test-twice.py
@@ -54,7 +54,7 @@ if __name__ == '__main__':
     conn1 = make_connection(bus, queue.append, params)
     authenticator = JabberAuthenticator('test1', 'pass',
         resource=params['resource'])
-    stream1 = make_stream(queue.append, authenticator, protocol=JabberXmlStream,
+    stream1, port1 = make_stream(queue.append, authenticator, protocol=JabberXmlStream,
                           port=4242)
 
     params = {
@@ -67,7 +67,7 @@ if __name__ == '__main__':
     conn2 = make_connection(bus, queue.append, params)
     authenticator = XmppAuthenticator('test2', 'pass',
         resource=params['resource'])
-    stream2 = make_stream(queue.append, authenticator, protocol=XmppXmlStream,
+    stream2, port2 = make_stream(queue.append, authenticator, protocol=XmppXmlStream,
                           port=4343)
 
     test(queue, bus, conn1, conn2, stream1, stream2)
-- 
1.5.6.5



More information about the telepathy-commits mailing list