Merge pull request #8049 from terry-xiaoyu/fix_ci_mqtt_caps

fix(test): emqx_mqtt_caps_SUITE failed with {config_not_found,[zones]}
This commit is contained in:
Xinyu Liu 2022-05-26 11:41:54 +08:00 committed by GitHub
commit 4a8f74f913
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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