Skip to content

Commit e8ba93d

Browse files
committed
Set a random seed to ensure repeatability of tests
Drawback to this is that the test doesn't exercise the code as fully as more random usage would. Pro is that we don't get false negatives from CI tests as often.
1 parent 5fe9bf8 commit e8ba93d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/malli/parser_test.cljc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
parse (m/parser s)
9494
unparse (m/parser s)]
9595
(if expected-simple
96-
(doseq [g (mg/sample s)]
96+
(doseq [g (mg/sample s {:seed 0})]
9797
(testing (pr-str g)
9898
(let [p (parse g)]
9999
(is (identical? g p))

0 commit comments

Comments
 (0)