Skip to content

Commit

Permalink
Patch flaky tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vharmain committed Nov 24, 2024
1 parent e747ef5 commit 7becdc7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion webapp/test/clj/lipas/test_utils.clj
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
[lipas.backend.search :as search]
[lipas.backend.system :as sy]
[lipas.schema.core]
[lipas.utils :as utils]
[migratus.core :as migratus]
[ring.mock.request :as mock])
(:import [java.io ByteArrayOutputStream]
Expand All @@ -20,7 +21,11 @@
(defn gen-sports-site
[]
(try
(gen/generate (s/gen :lipas/sports-site))
;; FIXME map? spec generates too difficult error data for ES
(-> (s/gen :lipas/sports-site)
gen/generate
(update :ptv dissoc :error)
utils/clean)
(catch Throwable _t (gen-sports-site))))

(def <-json #(j/parse-string (slurp %) true))
Expand Down

0 comments on commit 7becdc7

Please sign in to comment.