Fail CI on lingering tasks (#88905)

This commit is contained in:
epenet
2023-03-07 11:35:48 +01:00
committed by GitHub
parent 85bcf11aeb
commit c51bde9a26
24 changed files with 170 additions and 2 deletions

View File

@@ -3,6 +3,7 @@
import json
from aiogithubapi import GitHubException
import pytest
from homeassistant.components.github.const import CONF_REPOSITORIES, DOMAIN
from homeassistant.core import HomeAssistant
@@ -15,6 +16,8 @@ from tests.test_util.aiohttp import AiohttpClientMocker
from tests.typing import ClientSessionGenerator
# This tests needs to be adjusted to remove lingering tasks
@pytest.mark.parametrize("expected_lingering_tasks", [True])
async def test_entry_diagnostics(
hass: HomeAssistant,
hass_client: ClientSessionGenerator,
@@ -54,6 +57,8 @@ async def test_entry_diagnostics(
)
# This tests needs to be adjusted to remove lingering tasks
@pytest.mark.parametrize("expected_lingering_tasks", [True])
async def test_entry_diagnostics_exception(
hass: HomeAssistant,
hass_client: ClientSessionGenerator,