[telepathy-gabble/master] offer-private-stream-tube.py: disable echo before we received the access control byte
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Thu May 7 07:50:18 PDT 2009
---
tests/twisted/tubes/offer-private-stream-tube.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/tests/twisted/tubes/offer-private-stream-tube.py b/tests/twisted/tubes/offer-private-stream-tube.py
index 035d997..5b2c2bf 100644
--- a/tests/twisted/tubes/offer-private-stream-tube.py
+++ b/tests/twisted/tubes/offer-private-stream-tube.py
@@ -343,10 +343,13 @@ def test(q, bus, conn, stream, bytestream_cls,
handle, access = new_conn_event.args
assert handle == bob_handle
protocol = socket_event.protocol
+ # we don't want to echo the access control byte
+ protocol.echoed = False
# start to read from the transport so we can read the control byte
protocol.transport.startReading()
t.check_new_connection_access(q, access_control, access, protocol)
+ protocol.echoed = True
expected_tube = (stream_tube_id, self_handle, cs.TUBE_TYPE_STREAM, 'echo',
sample_parameters, cs.TUBE_STATE_OPEN)
@@ -378,10 +381,13 @@ def test(q, bus, conn, stream, bytestream_cls,
handle, access = new_conn_event.args
assert handle == bob_handle
protocol = socket_event.protocol
+ # we don't want to echo the access control byte
+ protocol.echoed = False
# start to read from the transport so we can read the control byte
protocol.transport.startReading()
t.check_new_connection_access(q, access_control, access, protocol)
+ protocol.echoed = True
expected_tube = (new_stream_tube_id, self_handle, cs.TUBE_TYPE_STREAM,
'newecho', new_sample_parameters, cs.TUBE_STATE_OPEN)
--
1.5.6.5
More information about the telepathy-commits
mailing list