From 91c0a8046912053551e4b51f877c087959408909 Mon Sep 17 00:00:00 2001 From: Mark Wardle Date: Sun, 19 May 2024 14:01:31 +0100 Subject: [PATCH] Speed up automated tests --- test/com/eldrix/hermes/synth_test.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/com/eldrix/hermes/synth_test.clj b/test/com/eldrix/hermes/synth_test.clj index fcd9a999..32793d3a 100644 --- a/test/com/eldrix/hermes/synth_test.clj +++ b/test/com/eldrix/hermes/synth_test.clj @@ -96,7 +96,7 @@ n 2000 en-GB-refset (gen/generate (rf2/gen-concept {:id 999001261000000100 :active true})) concepts (conj (gen/sample (rf2/gen-concept) (dec n)) en-GB-refset) - descriptions (mapcat #(gen/sample (rf2/gen-description {:conceptId (:id %) :typeId snomed/Synonym :active true})) concepts) + descriptions (mapcat #(gen/sample (rf2/gen-description {:conceptId (:id %) :typeId snomed/Synonym :active true}) 2) concepts) descriptions-by-id (group-by :conceptId descriptions) en-GB (hgen/make-language-refset-items descriptions {:refsetId (:id en-GB-refset) :active true :acceptabilityId snomed/Preferred :typeId snomed/Synonym}) relationships (gen/sample (rf2/gen-relationship) n)