Merge pull request #7999 from terry-xiaoyu/ldap_flaky_tests
fix(test): flaky test cases of auth_ldap
This commit is contained in:
commit
e6a2a3d5d2
|
@ -48,7 +48,9 @@ init_per_group(GrpName, Cfg) ->
|
||||||
Cfg.
|
Cfg.
|
||||||
|
|
||||||
end_per_group(_GrpName, _Cfg) ->
|
end_per_group(_GrpName, _Cfg) ->
|
||||||
emqx_ct_helpers:stop_apps([emqx_auth_ldap]).
|
emqx_ct_helpers:stop_apps([emqx_auth_ldap]),
|
||||||
|
%% clear the application envs to avoid cross-suite testcase failure
|
||||||
|
application:unload(emqx_auth_ldap).
|
||||||
|
|
||||||
%%--------------------------------------------------------------------
|
%%--------------------------------------------------------------------
|
||||||
%% Cases
|
%% Cases
|
||||||
|
|
|
@ -40,7 +40,9 @@ init_per_suite(Config) ->
|
||||||
Config.
|
Config.
|
||||||
|
|
||||||
end_per_suite(_Config) ->
|
end_per_suite(_Config) ->
|
||||||
emqx_ct_helpers:stop_apps([emqx_auth_ldap]).
|
emqx_ct_helpers:stop_apps([emqx_auth_ldap]),
|
||||||
|
%% clear the application envs to avoid cross-suite testcase failure
|
||||||
|
application:unload(emqx_auth_ldap).
|
||||||
|
|
||||||
check_auth(_) ->
|
check_auth(_) ->
|
||||||
MqttUser1 = #{clientid => <<"mqttuser1">>,
|
MqttUser1 = #{clientid => <<"mqttuser1">>,
|
||||||
|
|
Loading…
Reference in New Issue