test: fix compile warning

This commit is contained in:
zhongwencool 2022-08-09 09:37:05 +08:00
parent 50bb5a4f5a
commit 25228ed248
4 changed files with 4 additions and 2 deletions

View File

@ -6,6 +6,7 @@
-define(PORT, 1884).
-export([start/0]).
-export([gen_register_packet/2]).
start() ->
io:format("start to connect ~p:~p~n", [?HOST, ?PORT]),

View File

@ -6,6 +6,7 @@
-define(PORT, 1884).
-export([start/0]).
-export([gen_register_packet/2]).
start() ->
io:format("start to connect ~p:~p~n", [?HOST, ?PORT]),

View File

@ -5,7 +5,7 @@
-define(HOST, {127,0,0,1}).
-define(PORT, 1884).
-export([start/0]).
-export([start/1]).
start(LoopTimes) ->
io:format("start to connect ~p:~p~n", [?HOST, ?PORT]),

View File

@ -61,5 +61,5 @@ t_restart_shared_sub(Config) when is_list(Config) ->
after 2000 ->
false
end);
t_restart_shared_sub({'end', Config}) ->
t_restart_shared_sub({'end', _Config}) ->
emqx:unsubscribe(<<"$share/grpa/t/a">>).