aboutsummaryrefslogtreecommitdiffstats
path: root/test/socks_SUITE.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2020-07-30 15:59:23 +0200
committerLoïc Hoguin <[email protected]>2020-09-21 15:51:57 +0200
commita1729d5584364412f72d0d6337447da653da865b (patch)
treef67daf56820310fe3d98ddceed3de60aedbb5984 /test/socks_SUITE.erl
parentf1e7517c05bb97c257ad7a39e170ebc91ca42149 (diff)
downloadgun-a1729d5584364412f72d0d6337447da653da865b.tar.gz
gun-a1729d5584364412f72d0d6337447da653da865b.tar.bz2
gun-a1729d5584364412f72d0d6337447da653da865b.zip
Make gun_socks_up stream-specific for HTTP/2 CONNECT
Diffstat (limited to 'test/socks_SUITE.erl')
-rw-r--r--test/socks_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/socks_SUITE.erl b/test/socks_SUITE.erl
index 72b038c..b577cb9 100644
--- a/test/socks_SUITE.erl
+++ b/test/socks_SUITE.erl
@@ -449,8 +449,8 @@ do_socks5_through_h2_connect_proxy(OriginScheme, OriginTransport, ProxyScheme, P
<<":authority">> := Authority1
}} = receive_from(Proxy1Pid),
{response, nofin, 200, _} = gun:await(ConnPid, StreamRef),
- %% We receive a gun_socks_up afterwards. This is the origin HTTP server.
- {ok, http} = gun:await_up(ConnPid),
+ %% We receive a stream-specific gun_socks_up afterwards. This is the origin HTTP server.
+ {up, http} = gun:await(ConnPid, StreamRef),
%% The second proxy receives a Socks5 auth/connect request.
{auth_methods, 1, [none]} = receive_from(Proxy2Pid),
{connect, <<"localhost">>, OriginPort} = receive_from(Proxy2Pid),