Fix slow config_flow test in squeezebox (#60373)

pull/60376/head
Michael 2021-11-25 23:26:28 +01:00 committed by GitHub
parent 7613c6fd4c
commit 16eb85bfc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
"""Test the Logitech Squeezebox config flow."""
from http import HTTPStatus
from unittest.mock import patch
@ -215,7 +216,7 @@ async def test_dhcp_discovery_no_server_found(hass):
with patch(
"homeassistant.components.squeezebox.config_flow.async_discover",
mock_failed_discover,
):
), patch("homeassistant.components.squeezebox.config_flow.TIMEOUT", 0.1):
result = await hass.config_entries.flow.async_init(
DOMAIN,
context={"source": config_entries.SOURCE_DHCP},