[Telepathy-commits] [telepathy-gabble/master] test-si-socks5-tubes.py: test if the world doesn't explode if a sock5 connection is closed

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Tue Jan 6 08:41:39 PST 2009


---
 tests/twisted/tubes/test-si-socks5-tubes.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/tests/twisted/tubes/test-si-socks5-tubes.py b/tests/twisted/tubes/test-si-socks5-tubes.py
index 92cab80..669bd2c 100644
--- a/tests/twisted/tubes/test-si-socks5-tubes.py
+++ b/tests/twisted/tubes/test-si-socks5-tubes.py
@@ -667,6 +667,9 @@ def test(q, bus, conn, stream):
     event = q.expect('s5b-data-received')
     assert event.properties['data'] == 'hello world'
 
+    # this connection is disconnected
+    transport.loseConnection()
+
     reactor.listenTCP(5085, S5BFactory(q.append))
 
     # have the fake client open the stream
-- 
1.5.6.5




More information about the Telepathy-commits mailing list