Skip to content

Commit

Permalink
Asserts ports are distinct when running e2e tests (#334)
Browse files Browse the repository at this point in the history
* Asserts ports are distinct when running e2e tests

* Upgraded deps
  • Loading branch information
mdemare authored Oct 25, 2024
1 parent fa55cc3 commit 749e6b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/nl/surf/eduhub_rio_mapper/e2e_helper.clj
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,11 @@
(defn start-services
"Start the serve-api and worker services."
[]
(let [config (config/make-config env)]

(when (= (:api-config config) (:worker-api-config config))
(println "The api and the worker must run on separate ports.")
(System/exit 1)))
(doseq [cmd ["serve-api" "worker"]]
(let [runtime (Runtime/getRuntime)
cmds ^"[Ljava.lang.String;" (into-array ["lein" "trampoline" "mapper" cmd])]
Expand Down

0 comments on commit 749e6b8

Please sign in to comment.