mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Nicer error when NPN isn't available
This commit is contained in:
parent
4efe014a2a
commit
b1fc7b1a9f
1 changed files with 16 additions and 11 deletions
|
@ -42,17 +42,22 @@ groups() ->
|
|||
]}].
|
||||
|
||||
init_per_suite(Config) ->
|
||||
application:start(crypto),
|
||||
application:start(cowlib),
|
||||
application:start(ranch),
|
||||
application:start(cowboy),
|
||||
application:start(asn1),
|
||||
application:start(public_key),
|
||||
application:start(ssl),
|
||||
application:start(gun),
|
||||
Dir = ?config(priv_dir, Config) ++ "/static",
|
||||
ct_helper:create_static_dir(Dir),
|
||||
[{static_dir, Dir}|Config].
|
||||
case proplists:get_value(ssl_app, ssl:versions()) of
|
||||
Version when Version < "5.2.1" ->
|
||||
{skip, "No NPN support in SSL application."};
|
||||
_ ->
|
||||
application:start(crypto),
|
||||
application:start(cowlib),
|
||||
application:start(ranch),
|
||||
application:start(cowboy),
|
||||
application:start(asn1),
|
||||
application:start(public_key),
|
||||
application:start(ssl),
|
||||
application:start(gun),
|
||||
Dir = ?config(priv_dir, Config) ++ "/static",
|
||||
ct_helper:create_static_dir(Dir),
|
||||
[{static_dir, Dir}|Config]
|
||||
end.
|
||||
|
||||
end_per_suite(Config) ->
|
||||
Dir = ?config(static_dir, Config),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue