From 7c4842e6e59d86ad879bf6b1dc1d23ad90a4b46e Mon Sep 17 00:00:00 2001 From: Thales Macedo Garitezi Date: Mon, 26 Sep 2022 08:57:53 -0300 Subject: [PATCH] test: attempt to fix inter-suite flakiness Ex: https://github.com/emqx/emqx-enterprise/actions/runs/3124750818/jobs/5068407612#step:7:769 ``` %%% undefined ==> end_per_suite: FAILED %%% undefined ==> {{badmatch,{error,enoent}}, [{emqx_auth_mongo_SUITE,end_per_suite,1, [{file,"/emqx/apps/emqx_auth_mongo/test/emqx_auth_mongo_SUITE.erl"}, {line,62}]}, {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1784}]}, {test_server,run_test_case_eval1,6,[{file,"test_server.erl"},{line,1381}]}, {test_server,run_test_case_eval,9,[{file,"test_server.erl"},{line,1225}]}]} Testing lib.emqx_auth_mongo: TEST COMPLETE, 3 ok, 0 failed of 3 test cases ``` --- apps/emqx_auth_mongo/test/emqx_auth_mongo_SUITE.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/emqx_auth_mongo/test/emqx_auth_mongo_SUITE.erl b/apps/emqx_auth_mongo/test/emqx_auth_mongo_SUITE.erl index 1765b3821..77a11e213 100644 --- a/apps/emqx_auth_mongo/test/emqx_auth_mongo_SUITE.erl +++ b/apps/emqx_auth_mongo/test/emqx_auth_mongo_SUITE.erl @@ -115,7 +115,7 @@ init_per_suite(Config) -> end_per_suite(_Cfg) -> deinit_mongo_data(), %% avoid inter-suite flakiness - ok = emqx_mod_acl_internal:load([]), + emqx_mod_acl_internal:load([]), emqx_ct_helpers:stop_apps([emqx_auth_mongo]). set_special_confs(emqx) ->