Browse Source

ci: use a magic number instead of AI hallucinated member

Jason Rumney 1 day ago
parent
commit
244dc672d9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/test_device.py

+ 1 - 1
tests/test_device.py

@@ -604,7 +604,7 @@ async def test_async_receive(subject, mock_api, mocker):
     mock_api().set_socketPersistent.reset_mock()
     mock_api().status.reset_mock()
     # Wait long enough to force a heartbeat poll on the next iteration
-    await asyncio.sleep(subject._heartbeat_interval + 0.1)
+    await asyncio.sleep(10.1)
     # Call the function under test
     print("getting second iteration...")
     result = await loop.__anext__()