couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bbast...@apache.org
Subject [34/41] couch-mrview commit: updated refs/heads/master to 28e51f3
Date Fri, 31 Oct 2014 19:53:49 GMT
fix broken tests


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/commit/8d3cdf16
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/tree/8d3cdf16
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/diff/8d3cdf16

Branch: refs/heads/master
Commit: 8d3cdf162db47ce87baa2238f658f8fe05724051
Parents: 5eab810
Author: Benjamin Bastian <benjamin.bastian@gmail.com>
Authored: Tue Sep 9 09:52:49 2014 -0700
Committer: Benjamin Bastian <benjamin.bastian@gmail.com>
Committed: Thu Oct 30 19:28:34 2014 -0700

----------------------------------------------------------------------
 test/couch_mrview_changes_since_tests.erl | 20 ++++++++++----------
 test/couch_mrview_index_changes_tests.erl | 11 ++++++++++-
 2 files changed, 20 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/blob/8d3cdf16/test/couch_mrview_changes_since_tests.erl
----------------------------------------------------------------------
diff --git a/test/couch_mrview_changes_since_tests.erl b/test/couch_mrview_changes_since_tests.erl
index 65f5a0b..69c9646 100644
--- a/test/couch_mrview_changes_since_tests.erl
+++ b/test/couch_mrview_changes_since_tests.erl
@@ -39,16 +39,16 @@ changes_since_test() ->
                 foreach,
                 fun setup/0, fun teardown/1,
                 [
-                    test_basic/1,
-                    test_range/1,
-                    test_basic_since/1,
-                    test_range_since/1,
-                    test_basic_count/1,
-                    test_range_count/1,
-                    test_basic_count_since/1,
-                    test_range_count_since/1,
-                    test_compact/1,
-                    test_remove_key/1
+                    fun test_basic/1,
+                    fun test_range/1,
+                    fun test_basic_since/1,
+                    fun test_range_since/1,
+                    fun test_basic_count/1,
+                    fun test_range_count/1,
+                    fun test_basic_count_since/1,
+                    fun test_range_count_since/1,
+                    fun test_compact/1,
+                    fun test_remove_key/1
                 ]
             }
         }

http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/blob/8d3cdf16/test/couch_mrview_index_changes_tests.erl
----------------------------------------------------------------------
diff --git a/test/couch_mrview_index_changes_tests.erl b/test/couch_mrview_index_changes_tests.erl
index 4a3a35c..486deb5 100644
--- a/test/couch_mrview_index_changes_tests.erl
+++ b/test/couch_mrview_index_changes_tests.erl
@@ -10,12 +10,21 @@
 % License for the specific language governing permissions and limitations under
 % the License.
 
--module(couch_mrview_all_docs_tests).
+-module(couch_mrview_index_changes_tests).
 
 -include_lib("couch/include/couch_eunit.hrl").
 -include_lib("couch/include/couch_db.hrl").
 
 
+setup() ->
+    {ok, Db} = couch_mrview_test_util:init_db(?tempdb(), map),
+    Db.
+
+teardown(Db) ->
+    couch_db:close(Db),
+    couch_server:delete(Db#db.name, [?ADMIN_USER]),
+    ok.
+
 changes_index_test() ->
     {
         "changes index tests",


Mime
View raw message