Skip to content

Commit

Permalink
Re-add sleep to make sure watchdog loop has enough time for 5 "feeds"
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJulianJES committed Apr 11, 2024
1 parent 0b5f87c commit 3051bbe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/application/test_connect.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import asyncio
from unittest.mock import AsyncMock, patch

import pytest
Expand Down Expand Up @@ -206,6 +207,7 @@ async def test_watchdog(device, make_application):
app._watchdog_feed = AsyncMock(wraps=app._watchdog_feed)

await app.startup(auto_form=False)
await asyncio.sleep(0.6)
assert len(app._watchdog_feed.mock_calls) >= 5

await app.shutdown()

0 comments on commit 3051bbe

Please sign in to comment.