mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Fix flapping chained task logging test (#38492)
This commit is contained in:
parent
2f1d989df2
commit
b3fd8a8343
@ -1436,14 +1436,14 @@ async def test_chained_logging_hits_log_timeout(hass, caplog):
|
|||||||
async def _task_chain_1():
|
async def _task_chain_1():
|
||||||
nonlocal created
|
nonlocal created
|
||||||
created += 1
|
created += 1
|
||||||
if created > 10:
|
if created > 1000:
|
||||||
return
|
return
|
||||||
hass.async_create_task(_task_chain_2())
|
hass.async_create_task(_task_chain_2())
|
||||||
|
|
||||||
async def _task_chain_2():
|
async def _task_chain_2():
|
||||||
nonlocal created
|
nonlocal created
|
||||||
created += 1
|
created += 1
|
||||||
if created > 10:
|
if created > 1000:
|
||||||
return
|
return
|
||||||
hass.async_create_task(_task_chain_1())
|
hass.async_create_task(_task_chain_1())
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user