You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2022/08/06 14:10:55 UTC
[couchdb] 09/21: feat(access): adjust existing tests
This is an automated email from the ASF dual-hosted git repository.
jan pushed a commit to branch feat/access-2022
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 1736e0bcd55e53099b4c4f4e6a9fd971238eb00f
Author: Jan Lehnardt <ja...@apache.org>
AuthorDate: Sat Jun 25 11:17:27 2022 +0200
feat(access): adjust existing tests
---
src/couch/test/eunit/couchdb_mrview_cors_tests.erl | 3 ++-
src/couch/test/eunit/couchdb_update_conflicts_tests.erl | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/couch/test/eunit/couchdb_mrview_cors_tests.erl b/src/couch/test/eunit/couchdb_mrview_cors_tests.erl
index 9822542f3..5fa547d62 100644
--- a/src/couch/test/eunit/couchdb_mrview_cors_tests.erl
+++ b/src/couch/test/eunit/couchdb_mrview_cors_tests.erl
@@ -18,6 +18,7 @@
-define(DDOC,
{[
{<<"_id">>, <<"_design/foo">>},
+ {<<"_access">>, [<<"user_a">>]},
{<<"shows">>,
{[
{<<"bar">>, <<"function(doc, req) {return '<h1>wosh</h1>';}">>}
@@ -97,7 +98,7 @@ should_make_shows_request(_, {Host, DbName}) ->
end).
create_db(backdoor, DbName) ->
- {ok, Db} = couch_db:create(DbName, [?ADMIN_CTX]),
+ {ok, Db} = couch_db:create(DbName, [?ADMIN_CTX, {access, true}]),
couch_db:close(Db);
create_db(clustered, DbName) ->
{ok, Status, _, _} = test_request:put(db_url(DbName), [?AUTH], ""),
diff --git a/src/couch/test/eunit/couchdb_update_conflicts_tests.erl b/src/couch/test/eunit/couchdb_update_conflicts_tests.erl
index 0722103a4..847125a50 100644
--- a/src/couch/test/eunit/couchdb_update_conflicts_tests.erl
+++ b/src/couch/test/eunit/couchdb_update_conflicts_tests.erl
@@ -19,7 +19,7 @@
-define(DOC_ID, <<"foobar">>).
-define(LOCAL_DOC_ID, <<"_local/foobar">>).
-define(NUM_CLIENTS, [100, 500, 1000, 2000, 5000, 10000]).
--define(TIMEOUT, 20000).
+-define(TIMEOUT, 100000).
start() ->
test_util:start_couch().