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:
commit
4a8f74f913
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue