summaryrefslogtreecommitdiff
path: root/tests/twisted/jingle/test-content-adding-removal.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/twisted/jingle/test-content-adding-removal.py')
-rw-r--r--tests/twisted/jingle/test-content-adding-removal.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/twisted/jingle/test-content-adding-removal.py b/tests/twisted/jingle/test-content-adding-removal.py
index 12aa4d62d..aee9a1d4c 100644
--- a/tests/twisted/jingle/test-content-adding-removal.py
+++ b/tests/twisted/jingle/test-content-adding-removal.py
@@ -55,6 +55,12 @@ def test(jp, q, bus, conn, stream, peer_removes_final_content):
stream_handler2 = make_channel_proxy(conn, e.args[0], 'Media.StreamHandler')
stream_handler2.NewNativeCandidate("fake", jt.get_remote_transports_dbus())
+ # Before the CM can initiate session, we modify a stream direction. This
+ # should result in a no-op since there's no need to inform the peer of
+ # change.
+ chan.StreamedMedia.RequestStreamDirection(stream_id2,
+ cs.MEDIA_STREAM_DIRECTION_RECEIVE)
+
# We set both streams as ready, which will trigger the session initiate
stream_handler.Ready(jt.get_audio_codecs_dbus())
stream_handler.StreamState(cs.MEDIA_STREAM_STATE_CONNECTED)