Skip to content

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

Raise describe timeout in handle-circular-refs-test (DEV-2333) (#82540)

bryan47644f8e40e0
diff --git a/test/metabase/util/malli/describe_test.cljc b/test/metabase/util/malli/describe_test.cljc
index 9b34c834a09..f9c6eea860d 100644
--- a/test/metabase/util/malli/describe_test.cljc
+++ b/test/metabase/util/malli/describe_test.cljc
@@ -64,4 +64,7 @@
(is (= "map where {:k -> <keyword>, :parent (optional) -> <recursive :metabase.util.malli.describe-test/map>}"
(umd/describe ::map)))
#?(:clj
- (is (string? (u/with-timeout 500 (umd/describe :metabase.lib.schema/query))))))
+ ;; this is a smoke test against runaway ref expansion (see `max-depth` in [[umd]]), which used to make this take
+ ;; literal minutes -- it is not a performance budget. The timeout is generous because this test is `^:parallel`
+ ;; and so competes for the thread pool with everything else; actual cost is ~175ms.
+ (is (string? (u/with-timeout 5000 (umd/describe :metabase.lib.schema/query))))))