diff --git a/frappe/core/doctype/prepared_report/test_prepared_report.py b/frappe/core/doctype/prepared_report/test_prepared_report.py index d9336ed0e0..7716fd443b 100644 --- a/frappe/core/doctype/prepared_report/test_prepared_report.py +++ b/frappe/core/doctype/prepared_report/test_prepared_report.py @@ -63,9 +63,12 @@ class TestPreparedReport(IntegrationTestCase): self.assertEqual(len(prepared_data["result"]), len(generated_data["result"])) self.assertEqual(len(prepared_data), len(generated_data)) - @run_only_if(db_type_is.MARIADB) def test_start_status_and_kill_jobs(self): - with test_report(report_type="Query Report", query="select sleep(10)") as report: + if frappe.db.db_type == "postgres": + query = "select pg_sleep(5)" + elif frappe.db.db_type == "mariadb": + query = "select sleep(5)" + with test_report(report_type="Query Report", query=query) as report: doc = self.create_prepared_report(report.name) self.wait_for_status(doc, "Started") job_id = doc.job_id