diff options
author | Loïc Hoguin <[email protected]> | 2019-09-19 15:14:31 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2019-09-22 16:46:35 +0200 |
commit | 02dd576a837b8b47b1c656c6f4b8769c1aeb4ed0 (patch) | |
tree | b405a4fc250ce60c7ee2fdba5e29858c54df8c4a /test/gun_test.erl | |
parent | 617554f305dc3bd031779ba0b8ef8d52edb52edd (diff) | |
download | gun-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/gun_test.erl')
-rw-r--r-- | test/gun_test.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/gun_test.erl b/test/gun_test.erl index a2cbf6d..a263335 100644 --- a/test/gun_test.erl +++ b/test/gun_test.erl @@ -49,6 +49,7 @@ init_origin(Parent, tcp, Protocol, Fun) -> http2 -> http2_handshake(ClientSocket, gen_tcp); _ -> ok end, + Parent ! {self(), handshake_completed}, Fun(Parent, ClientSocket, gen_tcp); init_origin(Parent, tls, Protocol, Fun) -> Opts0 = ct_helper:get_certs_from_ets(), @@ -68,6 +69,7 @@ init_origin(Parent, tls, Protocol, Fun) -> _ -> ok end, + Parent ! {self(), handshake_completed}, Fun(Parent, ClientSocket, ssl). http2_handshake(Socket, Transport) -> |