test(flaky): fix flaky test

```
%%% emqx_crl_cache_SUITE ==> t_empty_cache: FAILED
%%% emqx_crl_cache_SUITE ==> {{badmatch,{error,econnrefused}},
 [{emqx_crl_cache_SUITE,t_empty_cache,1,
                        [{file,"/home/thales/dev/emqx/emqx2/test/emqx_crl_cache_SUITE.erl"},
                         {line,450}]},
  {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1783}]},
  {test_server,run_test_case_eval1,6,[{file,"test_server.erl"},{line,1292}]},
  {test_server,run_test_case_eval,9,[{file,"test_server.erl"},{line,1224}]}]}
```
This commit is contained in:
Thales Macedo Garitezi 2022-12-07 11:32:54 -03:00
parent a54f88a1ad
commit 8d20c5a00c
1 changed files with 7 additions and 0 deletions

View File

@ -31,6 +31,13 @@
all() ->
emqx_ct:all(?MODULE).
init_per_suite(Config) ->
emqx_ct_helpers:boot_modules(all),
Config.
end_per_suite(_Config) ->
ok.
init_per_testcase(TestCase, Config)
when TestCase =:= t_empty_cache;
TestCase =:= t_filled_cache;