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) ->
|
init_per_suite(Config) ->
|
||||||
application:start(crypto),
|
case proplists:get_value(ssl_app, ssl:versions()) of
|
||||||
application:start(cowlib),
|
Version when Version < "5.2.1" ->
|
||||||
application:start(ranch),
|
{skip, "No NPN support in SSL application."};
|
||||||
application:start(cowboy),
|
_ ->
|
||||||
application:start(asn1),
|
application:start(crypto),
|
||||||
application:start(public_key),
|
application:start(cowlib),
|
||||||
application:start(ssl),
|
application:start(ranch),
|
||||||
application:start(gun),
|
application:start(cowboy),
|
||||||
Dir = ?config(priv_dir, Config) ++ "/static",
|
application:start(asn1),
|
||||||
ct_helper:create_static_dir(Dir),
|
application:start(public_key),
|
||||||
[{static_dir, Dir}|Config].
|
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) ->
|
end_per_suite(Config) ->
|
||||||
Dir = ?config(static_dir, Config),
|
Dir = ?config(static_dir, Config),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue