|
|
@@ -110,7 +110,7 @@ mock_print() ->
|
|
|
%% proxy usage/1,2 and print/1,2 to format_xx/1,2 funcs
|
|
|
catch meck:unload(emqx_ctl),
|
|
|
meck:new(emqx_ctl, [non_strict, passthrough]),
|
|
|
- meck:expect(emqx_ctl, print, fun(Arg) -> emqx_ctl:format(Arg) end),
|
|
|
+ meck:expect(emqx_ctl, print, fun(Arg) -> emqx_ctl:format(Arg, []) end),
|
|
|
meck:expect(emqx_ctl, print, fun(Msg, Arg) -> emqx_ctl:format(Msg, Arg) end),
|
|
|
meck:expect(emqx_ctl, usage, fun(Usages) -> emqx_ctl:format_usage(Usages) end),
|
|
|
meck:expect(emqx_ctl, usage, fun(CmdParams, CmdDescr) ->
|