From e362d32b3a388c81429f8e08f312dbd10e50fef7 Mon Sep 17 00:00:00 2001 From: Michael Klishin Date: Sun, 2 Mar 2014 14:48:15 +0400 Subject: [PATCH] Update this test for 2.12.x --- test/monger/test/cursor_test.clj | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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)]