tests: element: Don't run too many loop

g_thread_yield() doesn't ensure thread switching actually.
It would result to adding so many pads. Depending on system,
timeout might happen then.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/625>
This commit is contained in:
Seungha Yang 2020-09-15 04:24:20 +09:00
parent f44312ae5d
commit f120ad0012

View file

@ -870,7 +870,7 @@ GST_START_TEST (test_foreach_pad)
MAIN_START_THREAD_FUNCTION (0, thread_add_remove_pads, e);
MAIN_SYNCHRONIZE ();
for (i = 0; i < 10000; ++i) {
for (i = 0; i < 1000; ++i) {
gchar num[32];
g_snprintf (num, 32, "foreach-test-%u", i);