aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-01-06 10:09:54 +0100
committerLoïc Hoguin <[email protected]>2019-01-06 10:09:54 +0100
commit531bcb080b24d4edc061405f11747d7631ccab39 (patch)
tree939bf832a6ceb9fc62eb514e9de85827207b73b0 /test
parent36d44cbdd5d9df21b8ed4eac60a1fadd25a2ea25 (diff)
downloadgun-531bcb080b24d4edc061405f11747d7631ccab39.tar.gz
gun-531bcb080b24d4edc061405f11747d7631ccab39.tar.bz2
gun-531bcb080b24d4edc061405f11747d7631ccab39.zip
Increase the connect_h2 test delay
When it's testing h2 it has to do both ssl and h2 handshakes and that can take a while.
Diffstat (limited to 'test')
-rw-r--r--test/rfc7231_SUITE.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rfc7231_SUITE.erl b/test/rfc7231_SUITE.erl
index 62227df..769ce98 100644
--- a/test/rfc7231_SUITE.erl
+++ b/test/rfc7231_SUITE.erl
@@ -158,7 +158,7 @@ do_connect_h2(Transport) ->
}),
{request, <<"CONNECT">>, Authority, 'HTTP/1.1', _} = receive_from(ProxyPid),
{response, fin, 200, _} = gun:await(ConnPid, StreamRef),
- timer:sleep(100), %% Give enough time for the handshake to fully complete.
+ timer:sleep(1000), %% Give enough time for the ssl/h2 handshakes to fully complete.
_ = gun:get(ConnPid, "/proxied"),
<<_:24, 1:8, _/bits>> = receive_from(OriginPid),
#{