Skip to content

Commit 9633cc9

Browse files
committed
fix: reduce test nesting depth to avoid CI stack overflow
1 parent 3115d9a commit 9633cc9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/com/vadelabs/toon/encode/normalize_test.cljc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,11 +277,11 @@
277277
(testing "Exceeding max depth throws exception"
278278
(let [deeply-nested (reduce (fn [acc _] {:nested acc})
279279
{}
280-
(range 1005))]
280+
(range 55))]
281281
(is (thrown-with-msg? #?(:clj clojure.lang.ExceptionInfo
282282
:cljs js/Error)
283283
#"Maximum nesting depth exceeded"
284-
(norm/normalize-value deeply-nested)))))
284+
(norm/normalize-value deeply-nested 0 50)))))
285285

286286
(testing "Custom max-depth parameter"
287287
(let [nested {:a {:b {:c {:d {:e 1}}}}}]

0 commit comments

Comments
 (0)