Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Ensure idle_in_transaction_session_timeout is large enough during timeout test (#64866)

Dan Stone363ed3b9593e
diff --git a/enterprise/backend/test/metabase_enterprise/transforms_python/execute_test.clj b/enterprise/backend/test/metabase_enterprise/transforms_python/execute_test.clj
index b79f175b2d6..38a3bd9cfbb 100644
--- a/enterprise/backend/test/metabase_enterprise/transforms_python/execute_test.clj
+++ b/enterprise/backend/test/metabase_enterprise/transforms_python/execute_test.clj
@@ -116,6 +116,7 @@
:body long-running-code}
:target (assoc target :database (mt/id))}]
(mt/with-temp [:model/Transform transform transform-def]
+ (t2/query "SET LOCAL idle_in_transaction_session_timeout = 30000") ; mt/with-temp introduces a transaction which postgres might close early!
(let [{:keys [run_id]} (try
(transforms-python.execute/execute-python-transform! transform {:run-method :manual})
(catch Exception _