mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
server tests: send teardown to cleanup session
This commit is contained in:
parent
e0bc97e40c
commit
f78886e7cb
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue