diff options
author | Loïc Hoguin <[email protected]> | 2012-08-27 11:50:35 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2012-08-27 11:50:35 +0200 |
commit | e4124de2c71564d37b3732ede0fe1542de1d6f99 (patch) | |
tree | 0e632d9eb44c848bfc4b9190251e7c8566c8debc /test/ws_SUITE.erl | |
parent | 50e5a616dcaa765f0c795f565d361196823ed2fe (diff) | |
download | cowboy-e4124de2c71564d37b3732ede0fe1542de1d6f99.tar.gz cowboy-e4124de2c71564d37b3732ede0fe1542de1d6f99.tar.bz2 cowboy-e4124de2c71564d37b3732ede0fe1542de1d6f99.zip |
Switch to Ranch for connection handling
This is the first of many API incompatible changes.
You have been warned.
Diffstat (limited to 'test/ws_SUITE.erl')
-rw-r--r-- | test/ws_SUITE.erl | 9 |
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) -> |