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

Don't error out when h2spec can't be compiled

This commit is contained in:
Loïc Hoguin 2019-03-10 11:21:51 +01:00
parent 4918e271bd
commit b9d329c026
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
2 changed files with 12 additions and 7 deletions

View file

@ -28,11 +28,16 @@ init_per_suite(Config) ->
case os:getenv("H2SPEC") of
false ->
skip;
_ ->
cowboy_test:init_http(h2spec, #{
env => #{dispatch => init_dispatch()},
max_concurrent_streams => 100
}, Config)
H2spec ->
case filelib:is_file(H2spec) of
false ->
skip;
true ->
cowboy_test:init_http(h2spec, #{
env => #{dispatch => init_dispatch()},
max_concurrent_streams => 100
}, Config)
end
end.
end_per_suite(_Config) ->