You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ch...@apache.org on 2015/06/02 21:36:16 UTC

[45/50] couch commit: updated refs/heads/2080-port-cors-to-chttpd to 529339b

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/2080-port-cors-to-chttpd
Commit: 227bd06a6e9bc09183b3482e132611d97fbdf565
Parents: 1d28fd3
Author: Alexander Shorin <kx...@apache.org>
Authored: Fri May 22 20:18:05 2015 +0300
Committer: Alexander Shorin <kx...@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_() ->