0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Fix h2spec_SUITE init_per_suite return values

This commit is contained in:
Loïc Hoguin 2019-09-15 11:18:35 +02:00
parent e28a339ccd
commit ea976f02e0
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764

View file

@ -27,11 +27,11 @@ all() ->
init_per_suite(Config) -> init_per_suite(Config) ->
case os:getenv("H2SPEC") of case os:getenv("H2SPEC") of
false -> false ->
skip; {skip, "H2SPEC environment variable undefined."};
H2spec -> H2spec ->
case filelib:is_file(H2spec) of case filelib:is_file(H2spec) of
false -> false ->
skip; {skip, "H2SPEC executable not found."};
true -> true ->
cowboy_test:init_http(h2spec, #{ cowboy_test:init_http(h2spec, #{
env => #{dispatch => init_dispatch()}, env => #{dispatch => init_dispatch()},