aboutsummaryrefslogtreecommitdiffstats
path: root/test/rfc7230_SUITE.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-09-19 15:14:31 +0200
committerLoïc Hoguin <[email protected]>2019-09-22 16:46:35 +0200
commit02dd576a837b8b47b1c656c6f4b8769c1aeb4ed0 (patch)
treeb405a4fc250ce60c7ee2fdba5e29858c54df8c4a /test/rfc7230_SUITE.erl
parent617554f305dc3bd031779ba0b8ef8d52edb52edd (diff)
downloadgun-02dd576a837b8b47b1c656c6f4b8769c1aeb4ed0.tar.gz
gun-02dd576a837b8b47b1c656c6f4b8769c1aeb4ed0.tar.bz2
gun-02dd576a837b8b47b1c656c6f4b8769c1aeb4ed0.zip
Add Socks5->HTTP/2 tests
Also consolidate the ALPN code in the tls_handshake state rather than doing it in CONNECT/Socks separately. Also improves the origin tests by sending a message once the handshake is completed instead of having timeouts.
Diffstat (limited to 'test/rfc7230_SUITE.erl')
-rw-r--r--test/rfc7230_SUITE.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/rfc7230_SUITE.erl b/test/rfc7230_SUITE.erl
index e090545..da7b426 100644
--- a/test/rfc7230_SUITE.erl
+++ b/test/rfc7230_SUITE.erl
@@ -52,6 +52,7 @@ do_host_port(Transport, DefaultPort, HostHeaderPort) ->
end, 5000),
%% Confirm the default port is not sent in the request.
_ = gun:get(ConnPid, "/"),
+ handshake_completed = receive_from(OriginPid),
Data = receive_from(OriginPid),
Lines = binary:split(Data, <<"\r\n">>, [global]),
[<<"host: localhost", Rest/bits>>] = [L || <<"host: ", _/bits>> = L <- Lines],