Skip to content

Commit

Permalink
Fix watchdog test
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJulianJES committed Apr 11, 2024
1 parent e3c9fcf commit 464a9ff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/application/test_connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,10 @@ async def test_disconnect_failure(device, make_application):
@pytest.mark.parametrize("device", [FormedLaunchpadCC26X2R1])
async def test_watchdog(device, make_application):
app, znp_server = make_application(server_cls=device)
await app.startup(auto_form=False)

app._watchdog_feed = AsyncMock(wraps=app._watchdog_feed)

with patch("zigpy.application.ControllerApplication._watchdog_period", new=0.1):
await app.startup(auto_form=False)
await asyncio.sleep(0.6)

assert len(app._watchdog_feed.mock_calls) >= 5
Expand Down

0 comments on commit 464a9ff

Please sign in to comment.