couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [2/3] config commit: updated refs/heads/master to a2d5ad2
Date Wed, 27 Jan 2016 11:29:48 GMT
Don't set real log levels in tests

Setting the actual "log" "level" in tests triggers extraneous logging,
which is undesirable to have interleaved into test output.


Project: http://git-wip-us.apache.org/repos/asf/couchdb-config/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-config/commit/b208836f
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-config/tree/b208836f
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-config/diff/b208836f

Branch: refs/heads/master
Commit: b208836f059761ee24dea888a93efa1530d89b9c
Parents: 71f4e3c
Author: Jay Doane <jay.s.doane@gmail.com>
Authored: Thu Jan 21 21:40:14 2016 -0800
Committer: Jay Doane <jay.s.doane@gmail.com>
Committed: Thu Jan 21 21:40:14 2016 -0800

----------------------------------------------------------------------
 test/config_tests.erl | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-config/blob/b208836f/test/config_tests.erl
----------------------------------------------------------------------
diff --git a/test/config_tests.erl b/test/config_tests.erl
index d329bc9..50972d4 100644
--- a/test/config_tests.erl
+++ b/test/config_tests.erl
@@ -256,8 +256,8 @@ should_return_any_supported_default() ->
 should_update_option() ->
     ?_assertEqual("severe",
         begin
-            ok = config:set("log", "level", "severe", false),
-            config:get("log", "level")
+            ok = config:set("mock_log", "level", "severe", false),
+            config:get("mock_log", "level")
         end).
 
 should_create_new_section() ->
@@ -275,8 +275,8 @@ should_fail_to_set_binary_value() ->
 should_return_undefined_atom_after_option_deletion() ->
     ?_assertEqual(undefined,
         begin
-            ok = config:delete("log", "level", false),
-            config:get("log", "level")
+            ok = config:delete("mock_log", "level", false),
+            config:get("mock_log", "level")
         end).
 
 should_be_ok_on_deleting_unknown_options() ->


Mime
View raw message