[telepathy-gabble/master] test that ConnectionClosed is fired when tube is closed
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Thu May 21 02:29:26 PDT 2009
---
tests/twisted/tubes/accept-private-stream-tube.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/tests/twisted/tubes/accept-private-stream-tube.py b/tests/twisted/tubes/accept-private-stream-tube.py
index 15eb166..f2b3403 100644
--- a/tests/twisted/tubes/accept-private-stream-tube.py
+++ b/tests/twisted/tubes/accept-private-stream-tube.py
@@ -233,7 +233,9 @@ def test(q, bus, conn, stream, bytestream_cls,
bytestream, conn_id = expect_tube_activity(q, bus, conn, stream, bytestream_cls,
address_type, socket_address, access_control, access_control_param)
tubes_chan.Close()
- bytestream.wait_bytestream_closed()
+ bytestream.wait_bytestream_closed([
+ EventPattern('dbus-signal', signal='ConnectionClosed', args=[conn_id, cs.CANCELLED]),
+ EventPattern('socket-disconnected')])
# Receive a tube offer from Bob
(tubes_chan, tubes_iface, new_tube_chan, new_tube_iface) = \
--
1.5.6.5
More information about the telepathy-commits
mailing list