Skip to content

Commit 464a9ff

Browse files
committed
Fix watchdog test
1 parent e3c9fcf commit 464a9ff

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/application/test_connect.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,10 @@ async def test_disconnect_failure(device, make_application):
203203
@pytest.mark.parametrize("device", [FormedLaunchpadCC26X2R1])
204204
async def test_watchdog(device, make_application):
205205
app, znp_server = make_application(server_cls=device)
206-
await app.startup(auto_form=False)
207-
208206
app._watchdog_feed = AsyncMock(wraps=app._watchdog_feed)
209207

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

213212
assert len(app._watchdog_feed.mock_calls) >= 5

0 commit comments

Comments
 (0)