Fix the test cases of websocket channel

This commit is contained in:
GilbertWong 2019-08-09 15:28:54 +08:00 committed by Gilbert
parent 3032731a2d
commit 857b3df93d
1 changed files with 1 additions and 2 deletions

View File

@ -32,7 +32,7 @@ end_per_suite(_Config) ->
t_basic(_) ->
Topic = <<"TopicA">>,
{ok, C} = emqtt:start_link([{port, 8083}]),
{ok, C} = emqtt:start_link([{host, "127.0.0.1"}, {port, 8083}]),
{ok, _} = emqtt:ws_connect(C),
{ok, _, [1]} = emqtt:subscribe(C, Topic, qos1),
{ok, _, [2]} = emqtt:subscribe(C, Topic, qos2),
@ -54,4 +54,3 @@ recv_msgs(Count, Msgs) ->
after 100 ->
Msgs
end.