check: Fix test dash_mpdparser_xlink_period
authorDoug Nazar <nazard@nazar.ca>
Tue, 13 Apr 2021 09:54:37 +0000 (05:54 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 13 Apr 2021 10:17:47 +0000 (10:17 +0000)
Test used http://404/ERROR/XML.period as an invalid url. Curl now
interprets that as an 32bit int and tries an actual connect which
timesout. Use .invalid as an IANA reserved domain for invalid DNS.

curl -v http://404/ERROR/XML.period
*   Trying 0.0.1.148:80...

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2157>

tests/check/elements/dash_mpd.c

index 44b32a4..21ce5e0 100644 (file)
@@ -5852,7 +5852,7 @@ GST_START_TEST (dash_mpdparser_xlink_period)
   /* constructs initial mpd using external xml uri */
   /* For invalid URI, mpdparser should be ignore it */
   xml_joined = g_strjoin ("", xml_frag_start,
-      xml_uri_front, "http://404/ERROR/XML.period", xml_uri_rear,
+      xml_uri_front, "http://404.invalid/ERROR/XML.period", xml_uri_rear,
       xml_uri_front, (const char *) file_uri_single_period, xml_uri_rear,
       xml_uri_front, (const char *) file_uri_double_period, xml_uri_rear,
       xml_frag_end, NULL);