Merge pull request #7999 from terry-xiaoyu/ldap_flaky_tests

fix(test): flaky test cases of auth_ldap
This commit is contained in:
DDDHuang 2022-05-20 15:26:22 +08:00 committed by GitHub
commit e6a2a3d5d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -48,7 +48,9 @@ init_per_group(GrpName, Cfg) ->
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

View File

@ -40,7 +40,9 @@ init_per_suite(Config) ->
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(_) ->
MqttUser1 = #{clientid => <<"mqttuser1">>,