From c5eacf55c26c85c06a19217ffa01564f7e9e8fb5 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 19 Mar 2024 21:27:05 -1000 Subject: [PATCH] Fix flapping stream hls test (#113858) --- tests/components/stream/test_hls.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/components/stream/test_hls.py b/tests/components/stream/test_hls.py index 23ba2e4ab34..0ec01fd9231 100644 --- a/tests/components/stream/test_hls.py +++ b/tests/components/stream/test_hls.py @@ -327,6 +327,8 @@ async def test_stream_retries( await stream.start() await open_future1 await open_future2 + await hass.async_add_executor_job(stream._thread.join) + stream._thread = None assert av_open.call_count == 2 await hass.async_block_till_done()