We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e301e9 commit 071fac4Copy full SHA for 071fac4
test/aleph/http/clj_http/util.clj
@@ -11,6 +11,9 @@
11
FilterInputStream
12
InputStream)))
13
14
+;; turn off default middleware for the core tests
15
+(def no-middleware-pool (http/connection-pool {:middleware identity}))
16
+
17
(def base-req
18
{:scheme :http
19
:server-name "localhost"
@@ -80,7 +83,7 @@
80
83
;;_ (clojure.pprint/pprint ring-map)
81
84
clj-http-resp (core/request ring-map)
82
85
- aleph-resp @(http/request ring-map)]
86
+ aleph-resp @(http/request (assoc ring-map :pool no-middleware-pool))]
87
(is (= (:status clj-http-resp) (:status aleph-resp)))
88
(is-headers= (:headers clj-http-resp) (:headers aleph-resp))
89
(let [new-clj-http-body (is-input-stream= (:body clj-http-resp) (:body aleph-resp))]
0 commit comments