Skip to content
  • Tim-Philipp Müller's avatar
    tests: pipeline: try to make test_pipeline_reset_start_time more reliable · f6b1533e
    Tim-Philipp Müller authored
    Occasionally this test would fail, especially if the system is under load,
    because the position query would pick up the last position from the
    last buffer timestamp which has a lower timestamp than what we're
    looking for. The sleep is long enough, however. It's unclear to me why
    exactly this happens but there seems to be some kind of scheduling
    issue going on as the streaming thread floods the sink with buffers.
    
    Let's throttle the fakesrc to 100 buffers per second and make the sink
    sync to the clock to restore some sanity. It should be totally sufficient
    to test what we want to test, and seems to make things reliable here.
    f6b1533e