浏览代码

test: fix flaky test

Thales Macedo Garitezi 1 年之前
父节点
当前提交
220fbe8a0a
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      apps/emqx_resource/test/emqx_resource_SUITE.erl

+ 2 - 0
apps/emqx_resource/test/emqx_resource_SUITE.erl

@@ -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.
 t_force_stop(_Config) ->
     ?check_trace(
+        #{timetrap => 5_000},
         begin
             {ok, Agent} = emqx_utils_agent:start_link(not_called),
             {ok, _} =
@@ -3223,6 +3224,7 @@ t_force_stop(_Config) ->
                     }
                 ),
             ?assertEqual(ok, emqx_resource_manager:stop(?ID, _Timeout = 100)),
+            ?block_until(#{?snk_kind := connector_demo_free_resources_without_state}),
             ok
         end,
         [