Fix flapping chained task logging test (#38492)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2020-08-03 15:01:15 +02:00
1 parent 2f1d989df2
commit b3fd8a8343
1 file changed
+2 -2
+2 -2
View File
@@ -1436,14 +1436,14 @@ async def test_chained_logging_hits_log_timeout(hass, caplog):
async def _task_chain_1():
nonlocal created
created += 1
if created > 10:
if created > 1000:
return
hass.async_create_task(_task_chain_2())
async def _task_chain_2():
nonlocal created
created += 1
if created > 10:
if created > 1000:
return
hass.async_create_task(_task_chain_1())