diff options
author | jiangphcn <jiangph@cn.ibm.com> | 2018-01-29 11:20:15 +0800 |
---|---|---|
committer | jiangphcn <jiangph@cn.ibm.com> | 2018-03-22 22:45:54 +0800 |
commit | 95a78cee483914c86c4de9918a8be7787611a24e (patch) | |
tree | a4c6118fc9404e4c92c02741cfd3fdf5661450b3 | |
parent | 0a477b51433301e246508f53fa7a332886a30d60 (diff) | |
download | couchdb-95a78cee483914c86c4de9918a8be7787611a24e.tar.gz |
Remove _config call in couch_peruser_test
Fixes #876
-rw-r--r-- | src/couch_peruser/test/couch_peruser_test.erl | 5 |
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([ |