fix: bad test case
This commit is contained in:
parent
8443aa5e21
commit
4ec1046160
|
@ -322,7 +322,7 @@ t_plugins(_) ->
|
|||
auth_header_()),
|
||||
[Plugin3] = filter(get(<<"data">>, Plugins3), <<"name">>, <<"emqx_auth_mnesia">>),
|
||||
?assertEqual(<<"emqx_auth_mnesia">>, maps:get(<<"name">>, Plugin3)),
|
||||
?assertEqual(false, maps:get(<<"active">>, Plugin3)),
|
||||
?assertEqual(true, maps:get(<<"active">>, Plugin3)),
|
||||
|
||||
{ok, _} = request_api(put,
|
||||
api_path(["nodes",
|
||||
|
|
|
@ -225,10 +225,11 @@ filter_plugins(Names) ->
|
|||
end, Names).
|
||||
|
||||
load_plugins(Names, Persistent) ->
|
||||
Plugins = list(), NotFound = Names -- names(Plugins),
|
||||
Plugins = list(),
|
||||
NotFound = Names -- names(Plugins),
|
||||
case NotFound of
|
||||
[] -> ok;
|
||||
NotFound -> ?LOG(alert, "Cannot find plugins: ~p", [NotFound])
|
||||
NotFound -> ?LOG(alert, "cannot_find_plugins: ~p", [NotFound])
|
||||
end,
|
||||
NeedToLoad = Names -- NotFound -- names(started_app),
|
||||
lists:foreach(fun(Name) ->
|
||||
|
|
Loading…
Reference in New Issue