diff options
author | Loïc Hoguin <[email protected]> | 2017-06-07 15:15:54 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2017-06-07 15:15:54 +0200 |
commit | 6f7b59886ec17027b16ed4d10737452e17f233d0 (patch) | |
tree | 6beec34b1f3343ab250d3993d5a0d572cbd956f5 /test/cowboy_test.erl | |
parent | 767da623f1f7329cb0b0d86c3c1876ccf098d60a (diff) | |
download | cowboy-6f7b59886ec17027b16ed4d10737452e17f233d0.tar.gz cowboy-6f7b59886ec17027b16ed4d10737452e17f233d0.tar.bz2 cowboy-6f7b59886ec17027b16ed4d10737452e17f233d0.zip |
Remove NumAcceptors argument from start_clear/tls
They are now cowboy:start_clear/3 and cowboy:start_tls/3.
The NumAcceptors argument can be specified via the
num_acceptor transport option. Ranch has been updated
to 1.4.0 to that effect.
Diffstat (limited to 'test/cowboy_test.erl')
-rw-r--r-- | test/cowboy_test.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/cowboy_test.erl b/test/cowboy_test.erl index a219878..bdae7e4 100644 --- a/test/cowboy_test.erl +++ b/test/cowboy_test.erl @@ -20,19 +20,19 @@ %% Listeners initialization. init_http(Ref, ProtoOpts, Config) -> - {ok, _} = cowboy:start_clear(Ref, 100, [{port, 0}], ProtoOpts), + {ok, _} = cowboy:start_clear(Ref, [{port, 0}], ProtoOpts), Port = ranch:get_port(Ref), [{type, tcp}, {protocol, http}, {port, Port}, {opts, []}|Config]. init_https(Ref, ProtoOpts, Config) -> Opts = ct_helper:get_certs_from_ets(), - {ok, _} = cowboy:start_tls(Ref, 100, Opts ++ [{port, 0}], ProtoOpts), + {ok, _} = cowboy:start_tls(Ref, Opts ++ [{port, 0}], ProtoOpts), Port = ranch:get_port(Ref), [{type, ssl}, {protocol, http}, {port, Port}, {opts, Opts}|Config]. init_http2(Ref, ProtoOpts, Config) -> Opts = ct_helper:get_certs_from_ets(), - {ok, _} = cowboy:start_tls(Ref, 100, Opts ++ [{port, 0}], ProtoOpts), + {ok, _} = cowboy:start_tls(Ref, Opts ++ [{port, 0}], ProtoOpts), Port = ranch:get_port(Ref), [{type, ssl}, {protocol, http2}, {port, Port}, {opts, Opts}|Config]. |