From 6735c9737e81b1293a91f408f3118306a04cbfc7 Mon Sep 17 00:00:00 2001 From: Senko Rasic Date: Mon, 22 Feb 2010 09:37:50 +0100 Subject: tests: assert that modifying unsignalled content doesn't result in a crash --- tests/twisted/jingle/test-content-adding-removal.py | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- cgit v1.2.3