File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 1- import asyncio
21from unittest .mock import AsyncMock , patch
32
43import pytest
@@ -201,14 +200,12 @@ async def test_disconnect_failure(device, make_application):
201200
202201
203202@pytest .mark .parametrize ("device" , [FormedLaunchpadCC26X2R1 ])
203+ @patch ("zigpy_znp.zigbee.application.ControllerApplication._watchdog_period" , new = 0.1 )
204204async def test_watchdog (device , make_application ):
205205 app , znp_server = make_application (server_cls = device )
206206 app ._watchdog_feed = AsyncMock (wraps = app ._watchdog_feed )
207207
208- with patch ("zigpy.application.ControllerApplication._watchdog_period" , new = 0.1 ):
209- await app .startup (auto_form = False )
210- await asyncio .sleep (0.6 )
211-
208+ await app .startup (auto_form = False )
212209 assert len (app ._watchdog_feed .mock_calls ) >= 5
213210
214211 await app .shutdown ()
You can’t perform that action at this time.
0 commit comments