mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Run h2spec over TCP instead of TLS
This commit is contained in:
parent
d732e74dd5
commit
204fa12df8
1 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ init_per_suite(Config) ->
|
||||||
false ->
|
false ->
|
||||||
skip;
|
skip;
|
||||||
_ ->
|
_ ->
|
||||||
cowboy_test:init_http2(h2spec, #{
|
cowboy_test:init_http(h2spec, #{
|
||||||
env => #{dispatch => init_dispatch()},
|
env => #{dispatch => init_dispatch()},
|
||||||
max_concurrent_streams => 100
|
max_concurrent_streams => 100
|
||||||
}, Config)
|
}, Config)
|
||||||
|
@ -66,7 +66,7 @@ start_port(Config, Pid) ->
|
||||||
H2spec = os:getenv("H2SPEC"),
|
H2spec = os:getenv("H2SPEC"),
|
||||||
ListenPort = config(port, Config),
|
ListenPort = config(port, Config),
|
||||||
Port = open_port(
|
Port = open_port(
|
||||||
{spawn, H2spec ++ " -S -t -k -p "
|
{spawn, H2spec ++ " -S -p "
|
||||||
++ integer_to_list(ListenPort)},
|
++ integer_to_list(ListenPort)},
|
||||||
[{line, 10000}, {cd, config(priv_dir, Config)}, binary, exit_status]),
|
[{line, 10000}, {cd, config(priv_dir, Config)}, binary, exit_status]),
|
||||||
receive_infinity(Port, Pid, []).
|
receive_infinity(Port, Pid, []).
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue