test: fix emqx_config_SUITE
This commit is contained in:
parent
aa6053291e
commit
0937c81632
|
@ -36,6 +36,7 @@ t_fill_default_values(_) ->
|
||||||
<<"perf">> => #{},
|
<<"perf">> => #{},
|
||||||
<<"route_batch_clean">> => false}
|
<<"route_batch_clean">> => false}
|
||||||
},
|
},
|
||||||
|
WithDefaults = emqx_config:fill_defaults(Conf),
|
||||||
?assertMatch(#{<<"broker">> :=
|
?assertMatch(#{<<"broker">> :=
|
||||||
#{<<"enable_session_registry">> := true,
|
#{<<"enable_session_registry">> := true,
|
||||||
<<"perf">> :=
|
<<"perf">> :=
|
||||||
|
@ -45,6 +46,8 @@ t_fill_default_values(_) ->
|
||||||
<<"session_locking_strategy">> := quorum,
|
<<"session_locking_strategy">> := quorum,
|
||||||
<<"shared_dispatch_ack_enabled">> := false,
|
<<"shared_dispatch_ack_enabled">> := false,
|
||||||
<<"shared_subscription_strategy">> := round_robin,
|
<<"shared_subscription_strategy">> := round_robin,
|
||||||
<<"sys_heartbeat_interval">> := "30s",
|
<<"sys_heartbeat_interval">> := <<"30s">>,
|
||||||
<<"sys_msg_interval">> := "1m"}},
|
<<"sys_msg_interval">> := <<"1m">>}}, WithDefaults),
|
||||||
emqx_config:fill_defaults(Conf)).
|
%% ensure JSON compatible
|
||||||
|
_ = emqx_json:encode(WithDefaults),
|
||||||
|
ok.
|
||||||
|
|
Loading…
Reference in New Issue