Browse Source

Increase a timeout to make some slower tests pass

Loïc Hoguin 7 years ago
parent
commit
827bd8c1c9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/req_SUITE.erl

+ 1 - 1
test/req_SUITE.erl

@@ -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, <<>>}