mirror of
https://github.com/home-assistant/core.git
synced 2025-10-15 14:49:34 +00:00
Ensure test async_create_task eager start behavior matches production (#115517)
This commit is contained in:
@@ -3144,7 +3144,9 @@ async def test_multiple_runs_repeat_choose(
|
||||
|
||||
events = async_capture_events(hass, "abc")
|
||||
for _ in range(max_runs):
|
||||
hass.async_create_task(script_obj.async_run(context=Context()))
|
||||
hass.async_create_task(
|
||||
script_obj.async_run(context=Context()), eager_start=False
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
assert "WARNING" not in caplog.text
|
||||
|
Reference in New Issue
Block a user