Eliminate a few reflection warnings
This commit is contained in:
parent
fff83160be
commit
009d4c6232
1 changed files with 3 additions and 3 deletions
|
|
@ -25,20 +25,20 @@
|
||||||
|
|
||||||
(deftest connect-to-mongo-via-uri-without-credentials
|
(deftest connect-to-mongo-via-uri-without-credentials
|
||||||
(let [connection (monger.core/connect-via-uri! "mongodb://127.0.0.1/monger-test4")]
|
(let [connection (monger.core/connect-via-uri! "mongodb://127.0.0.1/monger-test4")]
|
||||||
(is (= (-> connection .getAddress (.sameHost "127.0.0.1")))))
|
(is (= (-> connection .getAddress ^InetAddress (.sameHost "127.0.0.1")))))
|
||||||
;; reconnect using regular host
|
;; reconnect using regular host
|
||||||
(helper/connect!))
|
(helper/connect!))
|
||||||
|
|
||||||
(deftest connect-to-mongo-via-uri-with-valid-credentials
|
(deftest connect-to-mongo-via-uri-with-valid-credentials
|
||||||
(let [connection (monger.core/connect-via-uri! "mongodb://clojurewerkz/monger!:monger!@127.0.0.1/monger-test4")]
|
(let [connection (monger.core/connect-via-uri! "mongodb://clojurewerkz/monger!:monger!@127.0.0.1/monger-test4")]
|
||||||
(is (= (-> connection .getAddress (.sameHost "127.0.0.1")))))
|
(is (= (-> connection .getAddress ^InetAddress (.sameHost "127.0.0.1")))))
|
||||||
;; reconnect using regular host
|
;; reconnect using regular host
|
||||||
(helper/connect!))
|
(helper/connect!))
|
||||||
|
|
||||||
(if-let [uri (System/getenv "MONGOHQ_URL")]
|
(if-let [uri (System/getenv "MONGOHQ_URL")]
|
||||||
(deftest ^{:external true} connect-to-mongo-via-uri-with-valid-credentials
|
(deftest ^{:external true} connect-to-mongo-via-uri-with-valid-credentials
|
||||||
(let [connection (monger.core/connect-via-uri! uri)]
|
(let [connection (monger.core/connect-via-uri! uri)]
|
||||||
(is (= (-> connection .getAddress (.sameHost "127.0.0.1")))))
|
(is (= (-> connection .getAddress ^InetAddress (.sameHost "127.0.0.1")))))
|
||||||
;; reconnect using regular host
|
;; reconnect using regular host
|
||||||
(helper/connect!)))
|
(helper/connect!)))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue