mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Improve reliability of a few tests
GitHub Actions runners are not as good as self-hosted BuildKite so some adjustments need to be made to timeouts and such.
This commit is contained in:
parent
cff9938a66
commit
ecf3d43613
2 changed files with 4 additions and 1 deletions
|
@ -329,6 +329,7 @@ do_idle_timeout_on_send(Config, Protocol) ->
|
|||
try
|
||||
ConnPid = gun_open([{type, tcp}, {protocol, Protocol}, {port, Port}|Config]),
|
||||
{ok, Protocol} = gun:await_up(ConnPid),
|
||||
timer:sleep(500),
|
||||
#{socket := Socket} = gun:info(ConnPid),
|
||||
Pid = get_remote_pid_tcp(Socket),
|
||||
StreamRef = gun:get(ConnPid, "/streamed_result/10/250"),
|
||||
|
@ -359,6 +360,7 @@ do_idle_timeout_reset_on_send(Config, Protocol) ->
|
|||
try
|
||||
ConnPid = gun_open([{type, tcp}, {protocol, Protocol}, {port, Port}|Config]),
|
||||
{ok, Protocol} = gun:await_up(ConnPid),
|
||||
timer:sleep(500),
|
||||
#{socket := Socket} = gun:info(ConnPid),
|
||||
Pid = get_remote_pid_tcp(Socket),
|
||||
StreamRef = gun:get(ConnPid, "/streamed_result/10/250"),
|
||||
|
|
|
@ -57,7 +57,8 @@ init_dispatch(Config) ->
|
|||
{"/resp/:key[/:arg]", resp_h, []},
|
||||
{"/multipart[/:key]", multipart_h, []},
|
||||
{"/args/:key/:arg[/:default]", echo_h, []},
|
||||
{"/crash/:key/period", echo_h, #{length => 999999999, period => 1000, crash => true}},
|
||||
{"/crash/:key/period", echo_h,
|
||||
#{length => 999999999, period => 1000, timeout => 5000, crash => true}},
|
||||
{"/no-opts/:key", echo_h, #{crash => true}},
|
||||
{"/opts/:key/length", echo_h, #{length => 1000}},
|
||||
{"/opts/:key/period", echo_h, #{length => 999999999, period => 2000}},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue