diff --git a/apps/emqx_management/test/emqx_bridge_mqtt_data_export_import_SUITE.erl b/apps/emqx_management/test/emqx_bridge_mqtt_data_export_import_SUITE.erl index 6fbfa726c..be3e1d6d7 100644 --- a/apps/emqx_management/test/emqx_bridge_mqtt_data_export_import_SUITE.erl +++ b/apps/emqx_management/test/emqx_bridge_mqtt_data_export_import_SUITE.erl @@ -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), @@ -181,4 +182,4 @@ handle_config(Config, ee430, rpc) -> handle_config(Config, ee435, Id) -> handle_config(Config, ee430, Id). --endif. \ No newline at end of file +-endif.