test(postgres): added PostgreSQL variant for start/kill job test (#34549)
This commit is contained in:
parent
f02c0060ae
commit
90e76220e3
1 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue