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:
J. Nick Koston 2023-02-09 08:30:35 -06:00 committed by GitHub
parent f4a81a8b5b
commit 03b47f1931
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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