Skip to content

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

Fix flaky query executions test (#81366)

Ben Grabow0cad99631abc
diff --git a/test/metabase/query_processor/middleware/process_userland_query_test.clj b/test/metabase/query_processor/middleware/process_userland_query_test.clj
index 71e7c91a955..4fe624d77c0 100644
--- a/test/metabase/query_processor/middleware/process_userland_query_test.clj
+++ b/test/metabase/query_processor/middleware/process_userland_query_test.clj
@@ -27,6 +27,7 @@
(let [original-hash (qp.util/query-hash query)
result (promise)]
(mt/with-temporary-setting-values [synchronous-batch-updates true]
+ (process-userland-query/flush-execution-metadata!)
;; save-execution-metadata!* is invoked from the QP pipeline transducer, which runs on a thread
;; that doesn't inherit *local-redefs* — use with-redefs so worker threads see the replacement.
;; [kondo-keep] suppresses a warning :redundant-ignore can't see; --audit rechecks