Adopt the shared connect poll in async_tcp and name the refused implementation

This commit is contained in:
J. Nick Koston
2026-09-03 18:54:23 +02:00
parent 900638463a
commit 30da0e81fa
5 changed files with 19 additions and 43 deletions
+3 -3
View File
@@ -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."""