Fix emqx_alarm_handler_SUITE

Prior to this change, emqx_alarm_handler_SUITE read emqx.conf rather
gen.emqx.conf which would trigger unexpected errors

This change fix this issue.
This commit is contained in:
Gilbert Wong 2019-03-13 10:45:42 +08:00 committed by Gilbert
parent 076f3e3068
commit 27a7105fac
1 changed files with 9 additions and 10 deletions

View File

@ -30,7 +30,7 @@ init_per_suite(Config) ->
[start_apps(App, {SchemaFile, ConfigFile}) || [start_apps(App, {SchemaFile, ConfigFile}) ||
{App, SchemaFile, ConfigFile} {App, SchemaFile, ConfigFile}
<- [{emqx, local_path("priv/emqx.schema"), <- [{emqx, local_path("priv/emqx.schema"),
local_path("etc/emqx.conf")}]], local_path("etc/gen.emqx.conf")}]],
Config. Config.
end_per_suite(_Config) -> end_per_suite(_Config) ->
@ -142,4 +142,3 @@ raw_send_serialize(Packet, Opts) ->
raw_recv_parse(P, ProtoVersion) -> raw_recv_parse(P, ProtoVersion) ->
emqx_frame:parse(P, {none, #{max_packet_size => ?MAX_PACKET_SIZE, emqx_frame:parse(P, {none, #{max_packet_size => ?MAX_PACKET_SIZE,
version => ProtoVersion}}). version => ProtoVersion}}).