From 857b3df93d0e998eb0c2bcd440457e8b7828ba91 Mon Sep 17 00:00:00 2001 From: GilbertWong Date: Fri, 9 Aug 2019 15:28:54 +0800 Subject: [PATCH] Fix the test cases of websocket channel --- test/emqx_ws_channel_SUITE.erl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/emqx_ws_channel_SUITE.erl b/test/emqx_ws_channel_SUITE.erl index 7e08c125f..f634e633e 100644 --- a/test/emqx_ws_channel_SUITE.erl +++ b/test/emqx_ws_channel_SUITE.erl @@ -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. -