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/"). emqx_ct_helpers:deps_path(emqx_management, "test/emqx_bridge_mqtt_data_export_import_SUITE_data/").
remove_resource(Id) -> remove_resource(Id) ->
timer:sleep(1000),
emqx_rule_registry:remove_resource(Id), emqx_rule_registry:remove_resource(Id),
emqx_rule_registry:remove_resource_params(Id). emqx_rule_registry:remove_resource_params(Id).
import(FilePath, Version) -> import(FilePath, Version) ->
ok = emqx_mgmt_data_backup:import(get_data_path() ++ "/" ++ FilePath, <<"{}">>), ok = emqx_mgmt_data_backup:import(get_data_path() ++ "/" ++ FilePath, <<"{}">>),
lists:foreach(fun(#resource{id = Id, config = Config} = _Resource) -> lists:foreach(fun(#resource{id = Id, config = Config} = _Resource) ->
timer:sleep(1000), timer:sleep(2000),
case Id of case Id of
<<"bridge">> -> <<"bridge">> ->
test_utils:resource_is_alive(Id), test_utils:resource_is_alive(Id),
@ -181,4 +182,4 @@ handle_config(Config, ee430, rpc) ->
handle_config(Config, ee435, Id) -> handle_config(Config, ee435, Id) ->
handle_config(Config, ee430, Id). handle_config(Config, ee430, Id).
-endif. -endif.