rtpjitterbuffer: make test more stable
authorHavard Graff <havard@pexip.com>
Tue, 26 Nov 2019 14:00:18 +0000 (15:00 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 29 Nov 2019 18:33:10 +0000 (18:33 +0000)
tests/check/elements/rtpjitterbuffer.c

index 88ce187..92d96d1 100644 (file)
@@ -1598,6 +1598,9 @@ GST_START_TEST (test_rtx_original_buffer_does_not_update_rtx_stats)
   fail_unless_equals_int64 (last_rtx_request,
       next_seqnum * TEST_BUF_DURATION + rtx_delay_ms * GST_MSECOND);
 
+  /* make sure the wait has settled before moving on */
+  gst_harness_wait_for_clock_id_waits (h, 1, 1);
+
   /* ORIGINAL seqnum 6 arrives just before it times out and is considered
    * lost. */
   now = 200 * GST_MSECOND;