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.
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 @@
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) ->