From e4124de2c71564d37b3732ede0fe1542de1d6f99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 27 Aug 2012 11:50:35 +0200 Subject: Switch to Ranch for connection handling This is the first of many API incompatible changes. You have been warned. --- test/ws_SUITE.erl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'test/ws_SUITE.erl') 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) -> -- cgit v1.2.3