Skip to content

Commit

Permalink
Avoid nesting sessions in recorder auto repairs tests (home-assistant…
Browse files Browse the repository at this point in the history
  • Loading branch information
emontnemery authored Jul 25, 2024
1 parent e015c0a commit 81983d6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/components/recorder/auto_repairs/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,14 @@ def _break_states_schema():
"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(
Expand Down

0 comments on commit 81983d6

Please sign in to comment.