mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 09:47:52 +00:00
Skip flaky stream tests (#23493)
* Skip flaky test_hls tests * Skip flaky test_recorder tests
This commit is contained in:
parent
b09f5b6743
commit
37badbbf09
@ -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', {
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user