couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject couch commit: updated refs/heads/master to 227bd06
Date Fri, 22 May 2015 17:19:24 GMT
Repository: couchdb-couch
Updated Branches:
  refs/heads/master 1d28fd367 -> 227bd06a6


Fix global_changes tests


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

Branch: refs/heads/master
Commit: 227bd06a6e9bc09183b3482e132611d97fbdf565
Parents: 1d28fd3
Author: Alexander Shorin <kxepal@apache.org>
Authored: Fri May 22 20:18:05 2015 +0300
Committer: Alexander Shorin <kxepal@apache.org>
Committed: Fri May 22 20:18:51 2015 +0300

----------------------------------------------------------------------
 test/global_changes_tests.erl | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/227bd06a/test/global_changes_tests.erl
----------------------------------------------------------------------
diff --git a/test/global_changes_tests.erl b/test/global_changes_tests.erl
index aa73898..273739e 100644
--- a/test/global_changes_tests.erl
+++ b/test/global_changes_tests.erl
@@ -7,12 +7,14 @@ setup() ->
     Host = get_host(),
     add_admin("admin", <<"pass">>),
     DbName = "foo/" ++ ?b2l(?tempdb()),
-    fabric:create_db(DbName, [?ADMIN_CTX]),
+    [fabric:create_db(Name, [?ADMIN_CTX])
+        || Name <- ["_global_changes", DbName]],
     {Host, DbName}.
 
 teardown({_, DbName}) ->
     delete_admin("admin"),
-    ok = fabric:delete_db(?l2b(DbName), [?ADMIN_CTX]),
+    [fabric:delete_db(Name, [?ADMIN_CTX])
+        || Name <- ["_global_changes", DbName]],
     ok.
 
 global_changes_test_() ->


Mime
View raw message