From a0f440215f39073ddee0eb7afa7ef48441e1b27f Mon Sep 17 00:00:00 2001 From: Joel Kaasinen Date: Wed, 28 Aug 2024 11:18:18 +0300 Subject: [PATCH] test: try to make map-of-min-max-test less flaky by fixing seed fixes #1087 --- test/malli/generator_test.cljc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/malli/generator_test.cljc b/test/malli/generator_test.cljc index 5fdcbc5e5..b7920af20 100644 --- a/test/malli/generator_test.cljc +++ b/test/malli/generator_test.cljc @@ -1045,13 +1045,16 @@ (deftest map-of-min-max-test (is (empty? (remove #(<= 2 (count %)) (mg/sample [:map-of {:min 2} [:enum 1 2 3] :any] - {:size 100})))) + {:size 100 + :seed 3})))) (is (empty? (remove #(<= (count %) 2) (mg/sample [:map-of {:max 2} [:enum 1 2 3] :any] - {:size 100})))) + {:size 100 + :seed 3})))) (is (empty? (remove #(<= 2 (count %) 3) (mg/sample [:map-of {:min 2 :max 3} [:enum 1 2 3] :any] - {:size 100}))))) + {:size 100 + :seed 3}))))) (deftest such-that-generator-failure-test (is (thrown-with-msg?