fix(emqx_rule_engine_api_rule_apply_SUITE): flaky test case

This commit is contained in:
Kjell Winblad 2024-04-18 14:28:28 +02:00
parent 8f1486f6d3
commit f5b0439724
1 changed files with 10 additions and 1 deletions

View File

@ -512,4 +512,13 @@ build_old_trace_data() ->
reload() -> reload() ->
catch ok = gen_server:stop(emqx_trace), catch ok = gen_server:stop(emqx_trace),
{ok, _Pid} = emqx_trace:start_link(). case emqx_trace:start_link() of
{ok, _Pid} = Res ->
Res;
NotOKRes ->
ct:pal(
"emqx_trace:start_link() gave result: ~p\n"
"(perhaps it is already started)",
[NotOKRes]
)
end.