core/tests/components/stream
Allen Porter 02a82d3f00
Add timeouts in stream tests to prevent possible hangs (#47545)
* Add timeouts on recving packets

Add a timeout when recving packets from the worker thread in case it hangs.
Add an exit condition just in case the while loop goes on forever.

* Add a timeout to recorder thread join.

* Wait for recorder thread to be invoked in tests

Remove the while loop and instead wait for segments to be produced by the background worker thread.

* Allow worker to resume before stopping to fix timeouts

* Lower test timeout further

* Remove test_stream_ended since it is flaky

This test doesn't really add additional value on top of other tests.
2021-03-13 01:53:26 -08:00
..
__init__.py
common.py Fix I-frame interval in stream test video (#47638) 2021-03-08 11:23:57 -08:00
conftest.py Add timeouts in stream tests to prevent possible hangs (#47545) 2021-03-13 01:53:26 -08:00
test_hls.py Add timeouts in stream tests to prevent possible hangs (#47545) 2021-03-13 01:53:26 -08:00
test_recorder.py Add timeouts in stream tests to prevent possible hangs (#47545) 2021-03-13 01:53:26 -08:00
test_worker.py Disable audio stream when ADTS AAC detected (#47441) 2021-03-06 16:40:49 +01:00