You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2019/12/19 17:51:03 UTC
[couchdb] 03/04: Speed up couch_peruser tests
This is an automated email from the ASF dual-hosted git repository.
davisp pushed a commit to branch speedup-test-suite
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 47b7b5adae35d35edb3d8ec2b659497954728215
Author: Paul J. Davis <pa...@gmail.com>
AuthorDate: Thu Dec 19 11:11:52 2019 -0600
Speed up couch_peruser tests
The quiet and start periods of a second were costing quite a bit of
time. Setting them to zero shaves off about 26 seconds.
---
src/couch_peruser/test/eunit/couch_peruser_test.erl | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/couch_peruser/test/eunit/couch_peruser_test.erl b/src/couch_peruser/test/eunit/couch_peruser_test.erl
index e128d31..5ddbe7a 100644
--- a/src/couch_peruser/test/eunit/couch_peruser_test.erl
+++ b/src/couch_peruser/test/eunit/couch_peruser_test.erl
@@ -18,7 +18,7 @@
-define(ADMIN_USERNAME, "admin").
-define(ADMIN_PASSWORD, "secret").
--define(WAIT_FOR_USER_DELETE_TIMEOUT, 3000).
+-define(WAIT_FOR_USER_DELETE_TIMEOUT, 1000).
setup_all() ->
TestCtx = test_util:start_couch([chttpd]),
@@ -37,8 +37,8 @@ setup() ->
do_request(put, get_base_url() ++ "/" ++ ?b2l(TestAuthDb)),
do_request(put, get_cluster_base_url() ++ "/" ++ ?b2l(TestAuthDb)),
set_config("couch_httpd_auth", "authentication_db", ?b2l(TestAuthDb)),
- set_config("couch_peruser", "cluster_quiet_period", "1"),
- set_config("couch_peruser", "cluster_start_period", "1"),
+ set_config("couch_peruser", "cluster_quiet_period", "0"),
+ set_config("couch_peruser", "cluster_start_period", "0"),
set_config("couch_peruser", "enable", "true"),
set_config("cluster", "n", "1"),
TestAuthDb.