This is an automated email from the ASF dual-hosted git repository. jaydoane pushed a commit to branch config-delete-reload in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit e4ab50254adf80f7856ef663a5251e1655113edb Author: Jay Doane <[email protected]> AuthorDate: Wed Oct 18 17:10:14 2023 -0700 Ensure these config tests get executed Unwrap tests from unnecessary `?_test(begin ... end)` so that they actually execute their assertions. --- src/config/test/config_tests.erl | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/config/test/config_tests.erl b/src/config/test/config_tests.erl index c10878a7e..dc83d2c72 100644 --- a/src/config/test/config_tests.erl +++ b/src/config/test/config_tests.erl @@ -457,16 +457,12 @@ should_ensure_that_no_ini_files_loaded() -> ?assertEqual(0, length(config:all())). should_create_non_persistent_option() -> - ?_test(begin - ?assertEqual(ok, config:set("httpd", "port", "80", false)), - ?assertEqual("80", config:get("httpd", "port")) - end). + ?assertEqual(ok, config:set("httpd", "port", "80", false)), + ?assertEqual("80", config:get("httpd", "port")). should_create_persistent_option() -> - ?_test(begin - ?assertEqual(ok, config:set("httpd", "bind_address", "127.0.0.1")), - ?assertEqual("127.0.0.1", config:get("httpd", "bind_address")) - end). + ?assertEqual(ok, config:set("httpd", "bind_address", "127.0.0.1")), + ?assertEqual("127.0.0.1", config:get("httpd", "bind_address")). should_handle_value_change({_Apps, Pid}) -> ?_test(begin
