Skip to content

Commit 071fac4

Browse files
committed
Remove unwanted default middleware for clj-http core comparison
1 parent 6e301e9 commit 071fac4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/aleph/http/clj_http/util.clj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
FilterInputStream
1212
InputStream)))
1313

14+
;; turn off default middleware for the core tests
15+
(def no-middleware-pool (http/connection-pool {:middleware identity}))
16+
1417
(def base-req
1518
{:scheme :http
1619
:server-name "localhost"
@@ -80,7 +83,7 @@
8083
;;_ (clojure.pprint/pprint ring-map)
8184
clj-http-resp (core/request ring-map)
8285
;;_ (clojure.pprint/pprint ring-map)
83-
aleph-resp @(http/request ring-map)]
86+
aleph-resp @(http/request (assoc ring-map :pool no-middleware-pool))]
8487
(is (= (:status clj-http-resp) (:status aleph-resp)))
8588
(is-headers= (:headers clj-http-resp) (:headers aleph-resp))
8689
(let [new-clj-http-body (is-input-stream= (:body clj-http-resp) (:body aleph-resp))]

0 commit comments

Comments
 (0)