Add more test cases for emqx
This commit is contained in:
parent
c3d07dbf80
commit
63fb6f2fd0
|
@ -32,6 +32,13 @@ init_per_suite(Config) ->
|
||||||
end_per_suite(_Config) ->
|
end_per_suite(_Config) ->
|
||||||
emqx_ct_helpers:stop_apps([]).
|
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(_) ->
|
t_stop_start(_) ->
|
||||||
emqx:stop(),
|
emqx:stop(),
|
||||||
false = emqx:is_running(node()),
|
false = emqx:is_running(node()),
|
||||||
|
|
Loading…
Reference in New Issue