fix(test): update the testcases

This commit is contained in:
Shawn 2021-07-15 17:19:46 +08:00
parent 6fbf20b930
commit d5756ecd52
3 changed files with 8 additions and 2 deletions

View File

@ -44,6 +44,10 @@ start_listener(ListenerId) ->
-spec start_listener(atom(), atom(), map()) -> ok | {error, term()}.
start_listener(ZoneName, ListenerName, #{type := Type, bind := Bind} = Conf) ->
dbg:tracer(),
dbg:p(all, c),
dbg:tpl(tls_record, sufficient_crypto_support, '_', cx),
case do_start_listener(ZoneName, ListenerName, Conf) of
{ok, _} ->
console_print("Start ~s listener ~s on ~s successfully.~n",

View File

@ -60,7 +60,7 @@ prop_sys() ->
do_setup() ->
ok = emqx_logger:set_log_level(emergency),
emqx_config:put([broker, sys_msg_interval], 60000),
emqx_config:put([broker, sys_msg_interval], 30000),
emqx_config:put([broker, sys_heartbeat_interval], 30000),
[mock(Mod) || Mod <- ?mock_modules],
ok.

View File

@ -68,7 +68,9 @@ set_special_configs(_App) ->
t_authz(_) ->
ClientInfo = #{clientid => <<"clientid">>,
username => <<"username">>,
peerhost => {127,0,0,1}
peerhost => {127,0,0,1},
zone => default,
listener => mqtt_tcp
},
meck:expect(emqx_resource, query, fun(_, _) -> {ok, []} end),