From 531bcb080b24d4edc061405f11747d7631ccab39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sun, 6 Jan 2019 10:09:54 +0100 Subject: 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. --- test/rfc7231_SUITE.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), #{ -- cgit v1.2.3