fix(test): emqx_mqtt_caps_SUITE failed with {config_not_found,[zones]}

This commit is contained in:
Shawn 2022-05-26 08:45:25 +08:00
parent 6102aa9939
commit 9c5c961356
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@
all() -> emqx_common_test_helpers:all(?MODULE).
t_check_pub(_) ->
OldConf = emqx:get_config([zones]),
OldConf = emqx:get_config([zones], #{}),
emqx_config:put_zone_conf(default, [mqtt, max_qos_allowed], ?QOS_1),
emqx_config:put_zone_conf(default, [mqtt, retain_available], false),
timer:sleep(50),
@ -43,7 +43,7 @@ t_check_pub(_) ->
emqx_config:put([zones], OldConf).
t_check_sub(_) ->
OldConf = emqx:get_config([zones]),
OldConf = emqx:get_config([zones], #{}),
SubOpts = #{
rh => 0,
rap => 0,