Update this test for 2.12.x

This commit is contained in:
Michael Klishin 2014-03-02 14:48:15 +04:00
parent 4dac6375ed
commit e362d32b3a

View file

@ -27,14 +27,16 @@
(is (= false (:tailable opts)))))
(deftest adding-option-to-cursor
(let [db-cur (make-db-cursor :docs)
_ (add-option! db-cur :notimeout)]
(let [db-cur (make-db-cursor :docs)]
(add-option! db-cur :notimeout)
(is (= (:notimeout cursor-options)
(.getOptions db-cur)))
;; setting tailable will also set awaitdata in 2.12.x. MK.
(add-option! db-cur :tailable)
(is (= (.getOptions db-cur)
(bit-or (:notimeout cursor-options)
(:tailable cursor-options))))))
(:tailable cursor-options)
(:awaitdata cursor-options))))))
(deftest remove-option-from-cursor
(let [db-cur (make-db-cursor :docs)]