Skip flaky stream tests (#23493)

* Skip flaky test_hls tests

* Skip flaky test_recorder tests
This commit is contained in:
Anders Melchiorsen 2019-04-28 13:58:19 +02:00 committed by GitHub
parent b09f5b6743
commit 37badbbf09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -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', {

View File

@ -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