You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ch...@apache.org on 2024/02/12 23:36:27 UTC

(couchdb) 26/28: Do not persist doc size test config settings

This is an automated email from the ASF dual-hosted git repository.

chewbranca pushed a commit to branch couch-stats-resource-tracker-rebase
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit aab9405dce74d9ec20accd88727d5ac49064ec7a
Author: Russell Branca <ch...@apache.org>
AuthorDate: Fri Jan 5 15:17:34 2024 -0800

    Do not persist doc size test config settings
    
    Most tests should not persist config changes. This is no exception.
    While the test deletes the change afterwards, system halts between setup
    and teardown result in a persisted max doc setting that causes
    unexpected failures on the next test suite that writes a document larger
    than 50 bytes.
---
 src/chttpd/test/eunit/chttpd_db_doc_size_tests.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/chttpd/test/eunit/chttpd_db_doc_size_tests.erl b/src/chttpd/test/eunit/chttpd_db_doc_size_tests.erl
index 01ef16f23..91817473d 100644
--- a/src/chttpd/test/eunit/chttpd_db_doc_size_tests.erl
+++ b/src/chttpd/test/eunit/chttpd_db_doc_size_tests.erl
@@ -25,7 +25,7 @@
 setup() ->
     Hashed = couch_passwords:hash_admin_password(?PASS),
     ok = config:set("admins", ?USER, ?b2l(Hashed), _Persist = false),
-    ok = config:set("couchdb", "max_document_size", "50"),
+    ok = config:set("couchdb", "max_document_size", "50", false),
     TmpDb = ?tempdb(),
     Addr = config:get("chttpd", "bind_address", "127.0.0.1"),
     Port = mochiweb_socket_server:get(chttpd, port),