From 37badbbf09cde7ea24c21e3120e9057a30edac6b Mon Sep 17 00:00:00 2001 From: Anders Melchiorsen Date: Sun, 28 Apr 2019 13:58:19 +0200 Subject: [PATCH] Skip flaky stream tests (#23493) * Skip flaky test_hls tests * Skip flaky test_recorder tests --- tests/components/stream/test_hls.py | 5 +++++ tests/components/stream/test_recorder.py | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/tests/components/stream/test_hls.py b/tests/components/stream/test_hls.py index 9d898d96d78..7e7c04c6100 100644 --- a/tests/components/stream/test_hls.py +++ b/tests/components/stream/test_hls.py @@ -2,6 +2,8 @@ from datetime import timedelta from urllib.parse import urlparse +import pytest + from homeassistant.setup import async_setup_component from homeassistant.components.stream import request_stream import homeassistant.util.dt as dt_util @@ -11,6 +13,7 @@ from tests.components.stream.common import ( generate_h264_video, preload_stream) +@pytest.mark.skip("Flaky in CI") async def test_hls_stream(hass, hass_client): """ Test hls stream. @@ -52,6 +55,7 @@ async def test_hls_stream(hass, hass_client): assert fail_response.status == 404 +@pytest.mark.skip("Flaky in CI") async def test_stream_timeout(hass, hass_client): """Test hls stream timeout.""" await async_setup_component(hass, 'stream', { @@ -90,6 +94,7 @@ async def test_stream_timeout(hass, hass_client): assert fail_response.status == 404 +@pytest.mark.skip("Flaky in CI") async def test_stream_ended(hass): """Test hls stream packets ended.""" await async_setup_component(hass, 'stream', { diff --git a/tests/components/stream/test_recorder.py b/tests/components/stream/test_recorder.py index 8e4a69e28ff..2f8d638baed 100644 --- a/tests/components/stream/test_recorder.py +++ b/tests/components/stream/test_recorder.py @@ -2,6 +2,7 @@ from datetime import timedelta from io import BytesIO from unittest.mock import patch +import pytest from homeassistant.setup import async_setup_component from homeassistant.components.stream.core import Segment @@ -13,6 +14,7 @@ from tests.components.stream.common import ( generate_h264_video, preload_stream) +@pytest.mark.skip("Flaky in CI") async def test_record_stream(hass, hass_client): """ Test record stream. @@ -44,6 +46,7 @@ async def test_record_stream(hass, hass_client): assert segments > 1 +@pytest.mark.skip("Flaky in CI") async def test_recorder_timeout(hass, hass_client): """Test recorder timeout.""" await async_setup_component(hass, 'stream', { @@ -69,6 +72,7 @@ async def test_recorder_timeout(hass, hass_client): assert mock_cleanup.called +@pytest.mark.skip("Flaky in CI") async def test_recorder_save(): """Test recorder save.""" # Setup