Sfoglia il codice sorgente

fix(deps): increase time sleep

wwhai 4 anni fa
parent
commit
773b8eef2f

+ 3 - 2
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.
+-endif.