aboutsummaryrefslogtreecommitdiffstats
path: root/test/ws_SUITE.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/ws_SUITE.erl')
-rw-r--r--test/ws_SUITE.erl9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/ws_SUITE.erl b/test/ws_SUITE.erl
index a3c140b..b732eb8 100644
--- a/test/ws_SUITE.erl
+++ b/test/ws_SUITE.erl
@@ -33,20 +33,21 @@ groups() ->
init_per_suite(Config) ->
application:start(inets),
+ application:start(ranch),
application:start(cowboy),
Config.
end_per_suite(_Config) ->
application:stop(cowboy),
+ application:stop(ranch),
application:stop(inets),
ok.
init_per_group(ws, Config) ->
Port = 33080,
- cowboy:start_listener(ws, 100,
- cowboy_tcp_transport, [{port, Port}],
- cowboy_http_protocol, [{dispatch, init_dispatch()}]
- ),
+ cowboy:start_http(ws, 100, [{port, Port}], [
+ {dispatch, init_dispatch()}
+ ]),
[{port, Port}|Config].
end_per_group(Listener, _Config) ->