Skip to content

Commit 3051bbe

Browse files
committed
Re-add sleep to make sure watchdog loop has enough time for 5 "feeds"
1 parent 0b5f87c commit 3051bbe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/application/test_connect.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import asyncio
12
from unittest.mock import AsyncMock, patch
23

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

208209
await app.startup(auto_form=False)
210+
await asyncio.sleep(0.6)
209211
assert len(app._watchdog_feed.mock_calls) >= 5
210212

211213
await app.shutdown()

0 commit comments

Comments
 (0)