diff options
author | Ognyan Tonchev <ognyan@axis.com> | 2014-07-09 14:17:46 +0200 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2014-07-09 16:17:00 +0200 |
commit | f78886e7cb6992a5d25098978e6edc62baeee32e (patch) | |
tree | 1f949eb60e97a93c63d6d61dac8ab7495787dd9a | |
parent | e0bc97e40cdf49de2911038c92275b6181113ba6 (diff) |
server tests: send teardown to cleanup session
-rw-r--r-- | tests/check/gst/rtspserver.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/check/gst/rtspserver.c b/tests/check/gst/rtspserver.c index 223ad69..28910f7 100644 --- a/tests/check/gst/rtspserver.c +++ b/tests/check/gst/rtspserver.c @@ -647,6 +647,10 @@ GST_START_TEST (test_setup) fail_unless (audio_transport->mode_play); gst_rtsp_transport_free (audio_transport); + /* send TEARDOWN request and check that we get 200 OK */ + fail_unless (do_simple_request (conn, GST_RTSP_TEARDOWN, + session) == GST_RTSP_STS_OK); + /* clean up and iterate so the clean-up can finish */ g_free (session); gst_sdp_message_free (sdp_message); @@ -710,6 +714,10 @@ GST_START_TEST (test_setup_with_require_header) fail_unless (video_transport->mode_play); gst_rtsp_transport_free (video_transport); + /* send TEARDOWN request and check that we get 200 OK */ + fail_unless (do_simple_request (conn, GST_RTSP_TEARDOWN, + session) == GST_RTSP_STS_OK); + /* clean up and iterate so the clean-up can finish */ g_free (session); gst_sdp_message_free (sdp_message); |