From ba00ba27a5ea97d20ad15c6abe68df428bdf8d54 Mon Sep 17 00:00:00 2001 From: Michael Klishin Date: Sun, 2 Dec 2018 21:24:05 +0300 Subject: [PATCH] Encode this slash in URI --- test/monger/test/authentication_test.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/monger/test/authentication_test.clj b/test/monger/test/authentication_test.clj index e8d5447..06acb7b 100644 --- a/test/monger/test/authentication_test.clj +++ b/test/monger/test/authentication_test.clj @@ -15,7 +15,7 @@ (is (-> conn .getAddress (.sameHost "127.0.0.1"))))) (deftest ^{:authentication true} connect-to-mongo-via-uri-with-valid-credentials - (let [{:keys [conn db]} (mg/connect-via-uri "mongodb://clojurewerkz/monger:monger@127.0.0.1/monger-test4")] + (let [{:keys [conn db]} (mg/connect-via-uri "mongodb://clojurewerkz%2Fmonger:monger@127.0.0.1/monger-test4")] (is (= "monger-test4" (.getName db))) (is (-> conn .getAddress (.sameHost "127.0.0.1"))) (mc/remove db "documents")