Explorar o código

Add more test cases for emqx

zhanghongtong %!s(int64=6) %!d(string=hai) anos
pai
achega
63fb6f2fd0
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      test/emqx_SUITE.erl

+ 7 - 0
test/emqx_SUITE.erl

@@ -32,6 +32,13 @@ init_per_suite(Config) ->
 end_per_suite(_Config) ->
     emqx_ct_helpers:stop_apps([]).
 
+t_restart(_) ->
+    ConfFile = "test.config",
+    Data = "[{emqx_statsd,[{interval,15000},{push_gateway,\"http://127.0.0.1:9091\"}]}].",
+    file:write_file(ConfFile, list_to_binary(Data)),
+    emqx:restart(ConfFile),
+    file:delete(ConfFile).
+
 t_stop_start(_) ->
     emqx:stop(),
     false = emqx:is_running(node()),