Skip to content

Commit 19de152

Browse files
committed
Hope this solves the SQ complaint
1 parent 0788b3d commit 19de152

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_usb.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -547,17 +547,17 @@ async def node_motion_state(
547547
)
548548
)
549549

550-
async def _wait_for_scan(self, stick, timeout: float = 10.0) -> None:
550+
async def _wait_for_scan(self, stick) -> None:
551551
"""Wait for scan completion with timeout."""
552552

553553
async def wait_scan_completed():
554554
while not stick._network._register.scan_completed:
555555
await asyncio.sleep(0.1)
556556

557557
try:
558-
await asyncio.wait_for(wait_scan_completed(), timeout=timeout)
558+
await asyncio.wait_for(wait_scan_completed(), timeout=10)
559559
except TimeoutError:
560-
pytest.fail(f"Scan did not complete within {timeout} seconds")
560+
pytest.fail("Scan did not complete within 10 seconds")
561561

562562
@pytest.mark.asyncio
563563
async def test_stick_node_discovered_subscription( # noqa: PLR0915

0 commit comments

Comments
 (0)