summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjiangphcn <jiangph@cn.ibm.com>2018-01-29 11:20:15 +0800
committerjiangphcn <jiangph@cn.ibm.com>2018-03-22 22:45:54 +0800
commit95a78cee483914c86c4de9918a8be7787611a24e (patch)
treea4c6118fc9404e4c92c02741cfd3fdf5661450b3
parent0a477b51433301e246508f53fa7a332886a30d60 (diff)
downloadcouchdb-95a78cee483914c86c4de9918a8be7787611a24e.tar.gz
Remove _config call in couch_peruser_test
Fixes #876
-rw-r--r--src/couch_peruser/test/couch_peruser_test.erl5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/couch_peruser/test/couch_peruser_test.erl b/src/couch_peruser/test/couch_peruser_test.erl
index f6ef88f0b..ea71f113c 100644
--- a/src/couch_peruser/test/couch_peruser_test.erl
+++ b/src/couch_peruser/test/couch_peruser_test.erl
@@ -42,7 +42,6 @@ setup() ->
set_config("couch_peruser", "cluster_start_period", "1"),
set_config("couch_peruser", "enable", "true"),
set_config("cluster", "n", "1"),
- timer:sleep(1000),
TestAuthDb.
teardown(TestAuthDb) ->
@@ -62,9 +61,7 @@ teardown(TestAuthDb) ->
end, all_dbs()).
set_config(Section, Key, Value) ->
- Url = lists:concat([
- get_base_url(), "/_config/", Section, "/", Key]),
- do_request(put, Url, "\"" ++ Value ++ "\"").
+ ok = config:set(Section, Key, Value, _Persist=false).
delete_config(Section, Key, Value) ->
Url = lists:concat([