Update this test for 2.12.x
This commit is contained in:
parent
4dac6375ed
commit
e362d32b3a
1 changed files with 5 additions and 3 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Reference in a new issue