mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Disable test_entity_ids on MariaDB (#87766)
Dropping the database after this test will fail on MySQL and hang forever because it causes an InnoDB deadlock ``` | 2042 | root | localhost:52698 | NULL | Query | 41 | Waiting for table metadata lock | DROP DATABASE `homeassistant-test` | 0.000 | ```
This commit is contained in:
parent
f4a81a8b5b
commit
03b47f1931
@ -149,6 +149,10 @@ def test_from_event_to_delete_state() -> None:
|
||||
|
||||
def test_entity_ids(recorder_db_url: str) -> None:
|
||||
"""Test if entity ids helper method works."""
|
||||
if recorder_db_url.startswith("mysql://"):
|
||||
# Dropping the database after this test will fail on MySQL
|
||||
# because it will create an InnoDB deadlock.
|
||||
return
|
||||
engine = create_engine(recorder_db_url)
|
||||
Base.metadata.create_all(engine)
|
||||
session_factory = sessionmaker(bind=engine)
|
||||
|
Loading…
x
Reference in New Issue
Block a user