[#997] Add smoke test
This commit is contained in:
parent
f5cdf89608
commit
1a764f3120
1 changed files with 2 additions and 0 deletions
|
|
@ -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))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue