[#997] Add smoke test

This commit is contained in:
Michiel Borkent 2021-09-01 23:14:35 +02:00
parent f5cdf89608
commit 1a764f3120

View file

@ -8,6 +8,8 @@
(is (= 200 (:status (client/get "https://www.clojure.org")))) (is (= 200 (:status (client/get "https://www.clojure.org"))))
(is (instance? java.net.http.WebSocket$Builder (ws-client/websocket-builder)))) (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})))))
(defn ws-handler [{:keys [init] :as opts} req] (defn ws-handler [{:keys [init] :as opts} req]
(when init (init req)) (when init (init req))