mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 08:47:10 +00:00
Fix slow config_flow test in squeezebox (#60373)
This commit is contained in:
parent
7613c6fd4c
commit
16eb85bfc8
@ -1,4 +1,5 @@
|
|||||||
"""Test the Logitech Squeezebox config flow."""
|
"""Test the Logitech Squeezebox config flow."""
|
||||||
|
|
||||||
from http import HTTPStatus
|
from http import HTTPStatus
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
@ -215,7 +216,7 @@ async def test_dhcp_discovery_no_server_found(hass):
|
|||||||
with patch(
|
with patch(
|
||||||
"homeassistant.components.squeezebox.config_flow.async_discover",
|
"homeassistant.components.squeezebox.config_flow.async_discover",
|
||||||
mock_failed_discover,
|
mock_failed_discover,
|
||||||
):
|
), patch("homeassistant.components.squeezebox.config_flow.TIMEOUT", 0.1):
|
||||||
result = await hass.config_entries.flow.async_init(
|
result = await hass.config_entries.flow.async_init(
|
||||||
DOMAIN,
|
DOMAIN,
|
||||||
context={"source": config_entries.SOURCE_DHCP},
|
context={"source": config_entries.SOURCE_DHCP},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user