mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 08:47:57 +00:00
Avoid nesting sessions in recorder auto repairs tests (#122596)
This commit is contained in:
parent
e015c0a6ae
commit
81983d66f4
@ -176,14 +176,14 @@ async def test_validate_db_schema_fix_utf8_issue_with_broken_schema_unrepairable
|
||||
"LOCK=EXCLUSIVE;"
|
||||
)
|
||||
)
|
||||
_modify_columns(
|
||||
session_maker,
|
||||
recorder_mock.engine,
|
||||
"states",
|
||||
[
|
||||
"entity_id VARCHAR(255) NOT NULL",
|
||||
],
|
||||
)
|
||||
_modify_columns(
|
||||
session_maker,
|
||||
recorder_mock.engine,
|
||||
"states",
|
||||
[
|
||||
"entity_id VARCHAR(255) NOT NULL",
|
||||
],
|
||||
)
|
||||
|
||||
await recorder_mock.async_add_executor_job(_break_states_schema)
|
||||
schema_errors = await recorder_mock.async_add_executor_job(
|
||||
|
Loading…
x
Reference in New Issue
Block a user