diff --git a/test/monger/test/cursor_test.clj b/test/monger/test/cursor_test.clj index f162101..89c0db9 100644 --- a/test/monger/test/cursor_test.clj +++ b/test/monger/test/cursor_test.clj @@ -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)]