Upgrade to MongoDB 2.13.0
This commit is contained in:
parent
7bf5956565
commit
2d58b02b13
2 changed files with 2 additions and 4 deletions
|
|
@ -5,7 +5,7 @@
|
||||||
:license {:name "Eclipse Public License"
|
:license {:name "Eclipse Public License"
|
||||||
:url "http://www.eclipse.org/legal/epl-v10.html"}
|
:url "http://www.eclipse.org/legal/epl-v10.html"}
|
||||||
:dependencies [[org.clojure/clojure "1.6.0"]
|
:dependencies [[org.clojure/clojure "1.6.0"]
|
||||||
[org.mongodb/mongo-java-driver "2.12.4"]
|
[org.mongodb/mongo-java-driver "2.13.0"]
|
||||||
[clojurewerkz/support "1.1.0"]]
|
[clojurewerkz/support "1.1.0"]]
|
||||||
:test-selectors {:default (fn [m]
|
:test-selectors {:default (fn [m]
|
||||||
(and (not (:performance m))
|
(and (not (:performance m))
|
||||||
|
|
|
||||||
|
|
@ -28,12 +28,10 @@
|
||||||
(add-option! db-cur :notimeout)
|
(add-option! db-cur :notimeout)
|
||||||
(is (= (:notimeout cursor-options)
|
(is (= (:notimeout cursor-options)
|
||||||
(.getOptions db-cur)))
|
(.getOptions db-cur)))
|
||||||
;; setting tailable will also set awaitdata in 2.12.x. MK.
|
|
||||||
(add-option! db-cur :tailable)
|
(add-option! db-cur :tailable)
|
||||||
(is (= (.getOptions db-cur)
|
(is (= (.getOptions db-cur)
|
||||||
(bit-or (:notimeout cursor-options)
|
(bit-or (:notimeout cursor-options)
|
||||||
(:tailable cursor-options)
|
(:tailable cursor-options))))))
|
||||||
(:awaitdata cursor-options))))))
|
|
||||||
|
|
||||||
(deftest remove-option-from-cursor
|
(deftest remove-option-from-cursor
|
||||||
(let [db-cur (make-db-cursor db :docs)]
|
(let [db-cur (make-db-cursor db :docs)]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue