This commit is contained in:
Michiel Borkent 2021-09-01 23:30:33 +02:00
parent 1a764f3120
commit 943dc69c66

View file

@ -9,7 +9,10 @@
(is (instance? java.net.http.WebSocket$Builder (ws-client/websocket-builder))))
(deftest async-smoke-test
(is (= 200 (:status @(client/send-async {:uri "https://www.clojure.org" :method :get})))))
(when-not (and
(= "aarch64" (System/getenv "BABASHKA_ARCH"))
(= "true" (System/getenv "BABASHKA_STATIC")))
(is (= 200 (:status @(client/send-async {:uri "https://www.clojure.org" :method :get}))))))
(defn ws-handler [{:keys [init] :as opts} req]
(when init (init req))