Merge branch 'emqx30' of github.com:emqtt/emqttd into emqx30

This commit is contained in:
Feng Lee 2018-08-31 01:22:55 +08:00
commit aa1334313c
2 changed files with 3 additions and 2 deletions

View File

@ -154,7 +154,7 @@ init([]) ->
handle_call({register_mod, Type, Mod, Opts, Seq}, _From, State) ->
Mods = lookup_mods(Type),
reply(case lists:keyfind(Mod, 1, Mods) of
true ->
{_, _, _} ->
{error, already_existed};
false ->
case catch Mod:init(Opts) of

View File

@ -98,7 +98,8 @@ end_per_group(_Group, Config) ->
Config.
init_per_testcase(_TestCase, Config) ->
{ok, _Pid} = ?AC:start_link(),
%% {ok, _Pid} =
?AC:start_link(),
Config.
end_per_testcase(_TestCase, _Config) ->
ok.