chore: make prop pass

This commit is contained in:
JianBo He 2022-04-18 18:37:52 +08:00
parent 7c931e4dc6
commit 65eae13e0b
2 changed files with 6 additions and 3 deletions

View File

@ -31,7 +31,8 @@
emqx_stats,
emqx_broker,
mria_mnesia,
emqx_hooks
emqx_hooks,
emqx_config_handler
]).
-define(ALL(Vars, Types, Exprs),
@ -114,7 +115,9 @@ do_mock(emqx_metrics) ->
meck:expect(emqx_metrics, all, fun() -> [{hello, 3}] end);
do_mock(emqx_hooks) ->
meck:expect(emqx_hooks, put, fun(_HookPoint, _MFA) -> ok end),
meck:expect(emqx_hooks, del, fun(_HookPoint, _MF) -> ok end).
meck:expect(emqx_hooks, del, fun(_HookPoint, _MF) -> ok end);
do_mock(emqx_config_handler) ->
meck:expect(emqx_config_handler, add_handler, fun(_, _) -> ok end).
%%--------------------------------------------------------------------
%% MODEL