Merge pull request #35631 from AarDG10/fix-flaky-sqlite-test-pg

fix(test): maintain sanity to avoid unexpected test failures in postgres
This commit is contained in:
Aarol D'Souza 2026-01-04 09:36:42 +05:30 committed by GitHub
commit 5e2eab0cd8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -47,6 +47,8 @@ class TestSQLiteSearchAPI(IntegrationTestCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
frappe.db.delete("Note")
frappe.db.delete("ToDo")
cls.search = TestSQLiteSearch()
# Clean up any existing test database
cls.search.drop_index()