From cdba5952ed36d2c2be82c6ed5b8b436beb4c2874 Mon Sep 17 00:00:00 2001 From: Havard Graff Date: Thu, 6 Jun 2019 09:41:13 +0200 Subject: [PATCH] rtpsession: make tests more stable Part-of: --- tests/check/elements/rtpsession.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/check/elements/rtpsession.c b/tests/check/elements/rtpsession.c index 357e80f520..5c3c48c81b 100644 --- a/tests/check/elements/rtpsession.c +++ b/tests/check/elements/rtpsession.c @@ -427,6 +427,10 @@ GST_START_TEST (test_multiple_senders_roundrobin_rbs) g_object_set (h->internal_session, "internal-ssrc", 0xDEADBEEF, NULL); + /* this is a hack to prevent the sources from timing out when cranking and + hence messing with RTCP-generation, making the test fail 1/1000 times */ + g_object_set (h->session, "rtcp-min-interval", 20 * GST_SECOND, NULL); + for (i = 0; i < 2; i++) { /* cycles between RR reports */ for (j = 0; j < 5; j++) { /* packets per ssrc */ gint seq = (i * 5) + j; @@ -633,6 +637,10 @@ GST_START_TEST (test_internal_sources_timeout) g_object_get (h->internal_session, "internal-ssrc", &internal_ssrc, NULL); fail_unless_equals_int (0xDEADBEEF, internal_ssrc); + /* this is a hack to prevent the sources from timing out when cranking and + hence messing with RTCP-generation, making the test fail 1/100 times */ + g_object_set (h->session, "rtcp-min-interval", 20 * GST_SECOND, NULL); + for (i = 1; i < 4; i++) { buf = generate_test_buffer (i, 0xBEEFDEAD); res = session_harness_recv_rtp (h, buf);