mirror of
https://github.com/esphome/esphome.git
synced 2026-10-07 03:16:37 +00:00
Adopt the shared connect poll in async_tcp and name the refused implementation
This commit is contained in:
@@ -16,9 +16,9 @@ async def test_api_reboot_timeout(
|
||||
"""Test that the device reboots when no API clients connect within the timeout."""
|
||||
loop = asyncio.get_running_loop()
|
||||
reboot_future = loop.create_future()
|
||||
# The harness port probe counts as an unauthenticated client, so the
|
||||
# reboot may report either form
|
||||
reboot_pattern = re.compile(r"(No clients|none authenticated); rebooting")
|
||||
# The harness port probe always connects without authenticating, so the
|
||||
# reboot deterministically reports the unauthenticated form
|
||||
reboot_pattern = re.compile(r"none authenticated; rebooting")
|
||||
|
||||
def check_output(line: str) -> None:
|
||||
"""Check output for reboot message."""
|
||||
|
||||
Reference in New Issue
Block a user