From 9cc2d6dd198610b4f376f8456a566d6f15ff6f95 Mon Sep 17 00:00:00 2001 From: Toby Hede Date: Tue, 21 Feb 2012 13:13:20 +1100 Subject: [PATCH] insert into collection before re-index just to see if that makes a diff --- test/monger/test/command.clj | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/monger/test/command.clj b/test/monger/test/command.clj index ea96e80..749ec76 100644 --- a/test/monger/test/command.clj +++ b/test/monger/test/command.clj @@ -23,10 +23,11 @@ (is (= check (get stats "count"))))) -; (deftest test-reindex-collection -; (let [result (monger.command/reindex-collection "test")] -; (is (monger.result/ok? result)) -; (is (get result "indexes")))) +(deftest test-reindex-collection + (let [_ (mgcol/insert "test" { :name "Clojure" }) + result (monger.command/reindex-collection "test")] + (is (monger.result/ok? result)) + (is (get result "indexes")))) (deftest test-server-status