From 02dd576a837b8b47b1c656c6f4b8769c1aeb4ed0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 19 Sep 2019 15:14:31 +0200 Subject: 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. --- test/rfc7230_SUITE.erl | 1 + 1 file changed, 1 insertion(+) (limited to 'test/rfc7230_SUITE.erl') 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], -- cgit v1.2.3