Ensure test async_create_task eager start behavior matches production (#115517)

This commit is contained in:
J. Nick Koston
2024-04-13 10:58:52 -10:00
committed by GitHub
parent d9617a8e3a
commit ee535ee611
30 changed files with 125 additions and 82 deletions

View File

@@ -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