mirror of
https://github.com/home-assistant/core.git
synced 2026-09-09 07:01:41 +01:00
Fix flaky telegram_bot test timeout in CI (#170837)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
"""Tests for the telegram_bot integration."""
|
||||
|
||||
from collections.abc import AsyncGenerator, Generator
|
||||
from collections.abc import Generator
|
||||
from datetime import datetime
|
||||
from typing import Any
|
||||
from unittest.mock import AsyncMock, patch
|
||||
@@ -373,13 +373,11 @@ async def webhook_bot(
|
||||
mock_register_webhook: None,
|
||||
mock_external_calls: None,
|
||||
mock_generate_secret_token: str,
|
||||
) -> AsyncGenerator[None]:
|
||||
) -> None:
|
||||
"""Fixture for setting up a webhook telegram bot."""
|
||||
mock_webhooks_config_entry.add_to_hass(hass)
|
||||
await hass.config_entries.async_setup(mock_webhooks_config_entry.entry_id)
|
||||
await hass.async_block_till_done()
|
||||
yield
|
||||
await hass.async_stop()
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
||||
Reference in New Issue
Block a user