fix(deps): increase time sleep

This commit is contained in:
wwhai 2021-04-27 19:27:39 +08:00 committed by turtleDeng
parent bea28d887c
commit 773b8eef2f
1 changed files with 3 additions and 2 deletions

View File

@ -52,13 +52,14 @@ get_data_path() ->
emqx_ct_helpers:deps_path(emqx_management, "test/emqx_bridge_mqtt_data_export_import_SUITE_data/").
remove_resource(Id) ->
timer:sleep(1000),
emqx_rule_registry:remove_resource(Id),
emqx_rule_registry:remove_resource_params(Id).
import(FilePath, Version) ->
ok = emqx_mgmt_data_backup:import(get_data_path() ++ "/" ++ FilePath, <<"{}">>),
lists:foreach(fun(#resource{id = Id, config = Config} = _Resource) ->
timer:sleep(1000),
timer:sleep(2000),
case Id of
<<"bridge">> ->
test_utils:resource_is_alive(Id),