Skip to content

Commit

Permalink
Upgraded version of async-http-client to recent.
Browse files Browse the repository at this point in the history
  • Loading branch information
neotyk committed Oct 31, 2010
1 parent ebf7008 commit c4bbfc5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions 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"]
Expand Down
1 change: 1 addition & 0 deletions test-resources/realm.properties
@@ -0,0 +1 @@
beastie=boys, user
3 changes: 2 additions & 1 deletion test/http/async/client/test.clj
Expand Up @@ -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)

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c4bbfc5

Please sign in to comment.