Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Upgraded version of async-http-client to recent.

  • Loading branch information...
commit c4bbfc5080ab24c1ab67fa7be03dc770e1189c40 1 parent ebf7008
@neotyk neotyk authored
View
4 project.clj
@@ -1,9 +1,9 @@
-(defproject http.async.client "0.2.1-SNAPSHOT"
+(defproject http.async.client "0.2.1"
:description "Asynchronous HTTP Client for Clojure"
:namespaces [http.async.client]
:dependencies [[org.clojure/clojure "1.2.0"]
[org.clojure/clojure-contrib "1.2.0"]
- [com.ning/async-http-client "1.2.0"]]
+ [com.ning/async-http-client "1.3.2"]]
:dev-dependencies [[swank-clojure "1.2.1"]
[autodoc "0.7.1"]
[org.clojars.neotyk/lein-javac "1.0.2"]
View
1  test-resources/realm.properties
@@ -0,0 +1 @@
+beastie=boys, user
View
3  test/http/async/client/test.clj
@@ -35,6 +35,7 @@
(javax.servlet.http HttpServletRequest HttpServletResponse Cookie)
(java.io ByteArrayOutputStream IOException)
(java.net ServerSocket)
+ (java.nio.channels UnresolvedAddressException)
(java.util.concurrent TimeoutException)))
(set! *warn-on-reflection* true)
@@ -364,7 +365,7 @@
(deftest no-host
(let [resp (GET "http://notexisting/")]
(await resp)
- (is (= (.getMessage (error resp)) "[main] Connection refused to http://notexisting/"))
+ (is (= (class (.getCause (error resp))) UnresolvedAddressException))
(is (true? (failed? resp)))))
(deftest no-realm-for-digest
Please sign in to comment.
Something went wrong with that request. Please try again.