diff options
Diffstat (limited to 'test/cowboy_test.erl')
-rw-r--r-- | test/cowboy_test.erl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/cowboy_test.erl b/test/cowboy_test.erl index 07faf8e..44ffdf8 100644 --- a/test/cowboy_test.erl +++ b/test/cowboy_test.erl @@ -30,6 +30,12 @@ init_https(Ref, ProtoOpts, Config) -> 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), + Port = ranch:get_port(Ref), + [{type, ssl}, {protocol, http2}, {port, Port}, {opts, Opts}|Config]. + %% Common group of listeners used by most suites. common_all() -> |