diff options
author | Eric Avdey <eiri@eiri.ca> | 2017-08-22 11:27:03 -0300 |
---|---|---|
committer | Eric Avdey <eiri@eiri.ca> | 2017-08-22 12:55:16 -0300 |
commit | 2fc328e03dfbd1a381202b1ae9b25b4bda9fce2f (patch) | |
tree | 4c9ad6f83f2a9ced86318dceac77a0fe4b68be1f | |
parent | 224a2d8014603aafe4ba4f82197165eac08e32d8 (diff) | |
download | couchdb-2fc328e03dfbd1a381202b1ae9b25b4bda9fce2f.tar.gz |
Prevent custom test config from persisting
-rw-r--r-- | src/chttpd/test/chttpd_security_tests.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/chttpd/test/chttpd_security_tests.erl b/src/chttpd/test/chttpd_security_tests.erl index b3a14dff9..b80238c78 100644 --- a/src/chttpd/test/chttpd_security_tests.erl +++ b/src/chttpd/test/chttpd_security_tests.erl @@ -34,10 +34,11 @@ setup() -> Hashed = couch_passwords:hash_admin_password(?PASS), - ok = config:set("admins", ?USER, ?b2l(Hashed), _Persist=false), + Persist = false, + ok = config:set("admins", ?USER, ?b2l(Hashed), Persist), UserDb = ?tempdb(), TmpDb = ?tempdb(), - ok = config:set("chttpd_auth", "authentication_db", ?b2l(UserDb)), + ok = config:set("chttpd_auth", "authentication_db", ?b2l(UserDb), Persist), Addr = config:get("chttpd", "bind_address", "127.0.0.1"), Port = mochiweb_socket_server:get(chttpd, port), |