Procházet zdrojové kódy

ci: use a magic number instead of AI hallucinated member

Jason Rumney před 1 měsícem
rodič
revize
244dc672d9
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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__()