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

Increase a timeout to make some slower tests pass

This commit is contained in:
Loïc Hoguin 2018-05-16 14:04:38 +02:00
parent 474cb359ce
commit 827bd8c1c9
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764

View file

@ -77,7 +77,7 @@ do_body(Method, Path, Headers0, Body, Config) ->
<<>> -> gun:request(ConnPid, Method, Path, Headers); <<>> -> gun:request(ConnPid, Method, Path, Headers);
_ -> gun:request(ConnPid, Method, Path, Headers, Body) _ -> gun:request(ConnPid, Method, Path, Headers, Body)
end, end,
{response, IsFin, 200, RespHeaders} = gun:await(ConnPid, Ref), {response, IsFin, 200, RespHeaders} = gun:await(ConnPid, Ref, 10000),
{ok, RespBody} = case IsFin of {ok, RespBody} = case IsFin of
nofin -> gun:await_body(ConnPid, Ref); nofin -> gun:await_body(ConnPid, Ref);
fin -> {ok, <<>>} fin -> {ok, <<>>}