We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cc7ad8 commit 6ec05adCopy full SHA for 6ec05ad
1 file changed
ring-jetty-adapter/test/ring/adapter/test/jetty.clj
@@ -120,12 +120,10 @@
120
(with-server hello-world {:http? false
121
:unix-socket test-unix-domain-socket}
122
(let [path (Paths/get test-unix-domain-socket (make-array String 0))
123
- transport (HttpClientTransportOverHTTP. (ClientConnector.))
124
- client (doto (HttpClient. transport) (.start))
125
- response (-> client
126
- (.newRequest "http://localhost")
127
- (.transport (Transport$TCPUnix. path))
128
- (.send))]
+ response (-> (doto (HttpClient.) (.start))
+ (.newRequest "http://localhost")
+ (.transport (Transport$TCPUnix. path))
+ (.send))]
129
(is (= (.getStatus response) 200))
130
(is (.getMediaType response) "text/plain")
131
(is (= (.getContentAsString response) "Hello World")))))))
0 commit comments