test: fix flaky test

This commit is contained in:
Thales Macedo Garitezi 2024-07-22 09:44:11 -03:00
parent ed2fab51e9
commit 220fbe8a0a
1 changed files with 2 additions and 0 deletions

View File

@ -3206,6 +3206,7 @@ t_non_blocking_channel_health_check(_Config) ->
%% call such as `on_start', and that the claimed resources, if any, are freed. %% call such as `on_start', and that the claimed resources, if any, are freed.
t_force_stop(_Config) -> t_force_stop(_Config) ->
?check_trace( ?check_trace(
#{timetrap => 5_000},
begin begin
{ok, Agent} = emqx_utils_agent:start_link(not_called), {ok, Agent} = emqx_utils_agent:start_link(not_called),
{ok, _} = {ok, _} =
@ -3223,6 +3224,7 @@ t_force_stop(_Config) ->
} }
), ),
?assertEqual(ok, emqx_resource_manager:stop(?ID, _Timeout = 100)), ?assertEqual(ok, emqx_resource_manager:stop(?ID, _Timeout = 100)),
?block_until(#{?snk_kind := connector_demo_free_resources_without_state}),
ok ok
end, end,
[ [