diff options
author | Loïc Hoguin <[email protected]> | 2014-04-22 22:50:45 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2014-04-22 22:50:45 +0200 |
commit | 25a17a259056f8343f042553f9a0394309c9d928 (patch) | |
tree | d39c924f023196b350ef5ba89c50082d3948e465 /test/spdy_SUITE.erl | |
parent | b377eb9805de1fc3de0e1d0f1a448505409e9644 (diff) | |
download | cowboy-25a17a259056f8343f042553f9a0394309c9d928.tar.gz cowboy-25a17a259056f8343f042553f9a0394309c9d928.tar.bz2 cowboy-25a17a259056f8343f042553f9a0394309c9d928.zip |
Move listener initialization to cowboy_test
Diffstat (limited to 'test/spdy_SUITE.erl')
-rw-r--r-- | test/spdy_SUITE.erl | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/test/spdy_SUITE.erl b/test/spdy_SUITE.erl index 8ed747a..2e9c7e4 100644 --- a/test/spdy_SUITE.erl +++ b/test/spdy_SUITE.erl @@ -40,17 +40,12 @@ end_per_suite(Config) -> ct_helper:delete_static_dir(config(static_dir, Config)). init_per_group(Name, Config) -> - {_, Cert, Key} = ct_helper:make_certs(), - Opts = [{cert, Cert}, {key, Key}], - {ok, _} = cowboy:start_spdy(Name, 100, Opts ++ [{port, 0}], [ + cowboy_test:init_spdy(Name, [ {env, [{dispatch, init_dispatch(Config)}]} - ]), - Port = ranch:get_port(Name), - [{port, Port}, {type, ssl}|Config]. + ], Config). end_per_group(Name, _) -> - cowboy:stop_listener(Name), - ok. + cowboy:stop_listener(Name). %% Dispatch configuration. |