diff options
author | Loïc Hoguin <[email protected]> | 2020-09-25 13:52:31 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2020-10-03 17:30:36 +0200 |
commit | 2f42047d6cec210186d703e31e5fd970b1ea4e33 (patch) | |
tree | 30c529955a79df3cb0cb13021c951ce655617f95 /test/rfc7540_SUITE.erl | |
parent | 3ce70c5d96902e0e2718447383992dc7d6232e3a (diff) | |
download | gun-2f42047d6cec210186d703e31e5fd970b1ea4e33.tar.gz gun-2f42047d6cec210186d703e31e5fd970b1ea4e33.tar.bz2 gun-2f42047d6cec210186d703e31e5fd970b1ea4e33.zip |
Add tunnel_SUITE testing all 3-layer combinations
The test suite is 216 tests with a tunnel created via two
proxies leading to one origin server. The tests are for
example socks5_h2_https where socks5 identifies the first
SOCKS5 proxy, h2 the second HTTP/2 CONNECT proxy and https
the secure HTTP/1.1 origin server.
The test not only sets up the tunnel and does a request
(or sends/receives data in the case of raw origin servers)
but also confirms that the stream_info and info data is
correct.
Diffstat (limited to 'test/rfc7540_SUITE.erl')
-rw-r--r-- | test/rfc7540_SUITE.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rfc7540_SUITE.erl b/test/rfc7540_SUITE.erl index 4116ef4..9cb4ca2 100644 --- a/test/rfc7540_SUITE.erl +++ b/test/rfc7540_SUITE.erl @@ -632,7 +632,7 @@ do_connect_cowboy(_OriginScheme, OriginTransport, OriginProtocol, _ProxyScheme, {response, nofin, 200, _} = gun:await(ConnPid, StreamRef), {up, OriginProtocol} = gun:await(ConnPid, StreamRef), ProxiedStreamRef = gun:get(ConnPid, "/proxied", #{}, #{tunnel => StreamRef}), - timer:sleep(1000), + timer:sleep(1000), %% @todo Why? {response, nofin, 200, _} = gun:await(ConnPid, ProxiedStreamRef), %% We can create more requests on the proxy as well. ProxyStreamRef = gun:get(ConnPid, "/"), |