-
Task
-
Resolution: Done
-
Normal
-
None
-
None
Goal:
Improve the reliability of test database cleanup routines by ensuring that dropping a database does not raise an error if the database does not exist. This change reduces noise and fragility in test environments using MySQL and PostgreSQL by adding the IF EXISTS clause to DROP DATABASE statements.
Acceptance Criteria:
- Verify that DROP DATABASE IF EXISTS is used in all relevant test cleanup methods for MySQL and PostgreSQL.
- Verify that tests pass even if the database does not exist before the cleanup.
- Verify that no exception is raised during database teardown when the target database is missing.
- Verify that database cleanup logic remains functional and does remove the database when it does exist.