Avoid nesting sessions in recorder auto repairs tests (#122596)

This commit is contained in:
Erik Montnemery 2024-07-25 19:52:13 +02:00 committed by GitHub
parent e015c0a6ae
commit 81983d66f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -176,14 +176,14 @@ async def test_validate_db_schema_fix_utf8_issue_with_broken_schema_unrepairable
"LOCK=EXCLUSIVE;" "LOCK=EXCLUSIVE;"
) )
) )
_modify_columns( _modify_columns(
session_maker, session_maker,
recorder_mock.engine, recorder_mock.engine,
"states", "states",
[ [
"entity_id VARCHAR(255) NOT NULL", "entity_id VARCHAR(255) NOT NULL",
], ],
) )
await recorder_mock.async_add_executor_job(_break_states_schema) await recorder_mock.async_add_executor_job(_break_states_schema)
schema_errors = await recorder_mock.async_add_executor_job( schema_errors = await recorder_mock.async_add_executor_job(