[telepathy-gabble/master] accept-muc-stream-tube.py: use connect_socket

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Wed Apr 29 09:40:23 PDT 2009


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

diff --git a/tests/twisted/tubes/accept-muc-stream-tube.py b/tests/twisted/tubes/accept-muc-stream-tube.py
index 000ca33..2b61c39 100644
--- a/tests/twisted/tubes/accept-muc-stream-tube.py
+++ b/tests/twisted/tubes/accept-muc-stream-tube.py
@@ -190,11 +190,8 @@ def test(q, bus, conn, stream, bytestream_cls,
         EventPattern('dbus-signal', signal='TubeStateChanged',
             args=[stream_tube_id, 2]))
 
-    unix_socket_adr = accept_return_event.value[0]
-
-    factory = EventProtocolClientFactory(q)
-    reactor.connectUNIX(unix_socket_adr, factory)
-
+    address = accept_return_event.value[0]
+    t.connect_socket(q, address_type, address)
     event = q.expect('socket-connected')
     protocol = event.protocol
     protocol.sendData("hello initiator")
-- 
1.5.6.5




More information about the telepathy-commits mailing list