aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-01-10 11:07:09 +0100
committerLoïc Hoguin <[email protected]>2019-01-10 11:07:09 +0100
commit95b876447c75263f989bdd566da5ef8afa2c62c4 (patch)
tree0cef1117924261526a45c5f68f1a9c570c882c56
parent64fe97bc3847b95f8e0ed6dea096581d3eb6aba9 (diff)
downloadgun-95b876447c75263f989bdd566da5ef8afa2c62c4.tar.gz
gun-95b876447c75263f989bdd566da5ef8afa2c62c4.tar.bz2
gun-95b876447c75263f989bdd566da5ef8afa2c62c4.zip
Tweak more test timeouts
-rw-r--r--test/gun_SUITE.erl10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/gun_SUITE.erl b/test/gun_SUITE.erl
index f4587e3..5645a3c 100644
--- a/test/gun_SUITE.erl
+++ b/test/gun_SUITE.erl
@@ -371,14 +371,14 @@ stream_info_http(_) ->
{ok, _, OriginPort} = init_origin(tcp, http,
fun(_, ClientSocket, ClientTransport) ->
%% Give some time to detect the cancel.
- timer:sleep(100),
+ timer:sleep(200),
%% Then terminate the stream.
ClientTransport:send(ClientSocket,
"HTTP/1.1 200 OK\r\n"
"content-length: 0\r\n"
"\r\n"
),
- timer:sleep(200)
+ timer:sleep(400)
end),
{ok, Pid} = gun:open("localhost", OriginPort),
{ok, http} = gun:await_up(Pid),
@@ -397,10 +397,10 @@ stream_info_http(_) ->
state := stopping
}} = gun:stream_info(Pid, StreamRef),
%% Wait a little for the stream to terminate.
- timer:sleep(200),
+ timer:sleep(400),
{ok, undefined} = gun:stream_info(Pid, StreamRef),
%% Wait a little more for the connection to terminate.
- timer:sleep(200),
+ timer:sleep(400),
{error, not_connected} = gun:stream_info(Pid, StreamRef),
gun:close(Pid).
@@ -423,7 +423,7 @@ stream_info_http2(_) ->
}} = gun:stream_info(Pid, StreamRef),
gun:cancel(Pid, StreamRef),
%% Wait a little for the connection to terminate.
- timer:sleep(200),
+ timer:sleep(300),
{error, not_connected} = gun:stream_info(Pid, StreamRef),
gun:close(Pid).