style: format emqx files
This commit is contained in:
parent
6e819b5ecb
commit
6814f04b10
|
@ -488,7 +488,8 @@ is_tcp_server_available(Host, Port, Timeout) ->
|
|||
start_ekka() ->
|
||||
try mnesia_hook:module_info() of
|
||||
_ -> ekka:start()
|
||||
catch _:_ ->
|
||||
catch
|
||||
_:_ ->
|
||||
%% Falling back to using Mnesia DB backend.
|
||||
application:set_env(mria, db_backend, mnesia),
|
||||
ekka:start()
|
||||
|
|
|
@ -223,7 +223,9 @@ t_callback_crash(_Config) ->
|
|||
Opts = #{rawconf_with_defaults => true},
|
||||
ok = emqx_config_handler:add_handler(CrashPath, ?MODULE),
|
||||
Old = emqx:get_raw_config(CrashPath),
|
||||
?assertMatch({error, {config_update_crashed, _}}, emqx:update_config(CrashPath, <<"89%">>, Opts)),
|
||||
?assertMatch(
|
||||
{error, {config_update_crashed, _}}, emqx:update_config(CrashPath, <<"89%">>, Opts)
|
||||
),
|
||||
New = emqx:get_raw_config(CrashPath),
|
||||
?assertEqual(Old, New),
|
||||
ok = emqx_config_handler:remove_handler(CrashPath),
|
||||
|
|
Loading…
Reference in New Issue