You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2015/12/01 15:26:19 UTC
config commit: updated refs/heads/master to 84197a6
Repository: couchdb-config
Updated Branches:
refs/heads/master c0420118e -> 84197a6f1
Update handlers counter in tests
Somehow, but here we depend on existed and registered config
changes listeners. This change respects recent couch_log update
which subscribes to config changes and eventually bumps this counter.
Project: http://git-wip-us.apache.org/repos/asf/couchdb-config/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-config/commit/84197a6f
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-config/tree/84197a6f
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-config/diff/84197a6f
Branch: refs/heads/master
Commit: 84197a6f1c5cb43447239df1fe57b4312b0c03c4
Parents: c042011
Author: Alexander Shorin <kx...@apache.org>
Authored: Tue Dec 1 17:22:21 2015 +0300
Committer: Alexander Shorin <kx...@apache.org>
Committed: Tue Dec 1 17:24:48 2015 +0300
----------------------------------------------------------------------
test/config_tests.erl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-config/blob/84197a6f/test/config_tests.erl
----------------------------------------------------------------------
diff --git a/test/config_tests.erl b/test/config_tests.erl
index 4803286..995d285 100644
--- a/test/config_tests.erl
+++ b/test/config_tests.erl
@@ -408,13 +408,13 @@ should_not_call_handle_config_after_related_process_death({Pid, _}) ->
end).
should_remove_handler_when_requested({Pid, _}) ->
?_test(begin
- ?assertEqual(1, n_handlers()),
+ ?assertEqual(2, n_handlers()),
ok = config:set("remove_handler", "any", "any", false),
Reply = wait_reply(Pid),
?assertMatch({stop, _, remove_handler, _}, Reply),
- ?assertEqual(0, n_handlers())
+ ?assertEqual(1, n_handlers())
end).
call_sync(Listener, Msg) ->