aboutsummaryrefslogtreecommitdiffstats
path: root/test/http_SUITE.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-09-23 14:04:47 +0200
committerLoïc Hoguin <[email protected]>2018-09-23 14:04:47 +0200
commitf63609cb9c71ecd5d86bfff201c84915b7116c27 (patch)
tree2f96b65a0f9b1eddca9f0063caf4cabb8b5c1ba6 /test/http_SUITE.erl
parenta0f8d9b8b849d668109852006c76e07ece280e7d (diff)
downloadcowboy-f63609cb9c71ecd5d86bfff201c84915b7116c27.tar.gz
cowboy-f63609cb9c71ecd5d86bfff201c84915b7116c27.tar.bz2
cowboy-f63609cb9c71ecd5d86bfff201c84915b7116c27.zip
Correct two tests that introspect the Gun state
It has changed in Gun 1.2.
Diffstat (limited to 'test/http_SUITE.erl')
-rw-r--r--test/http_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/http_SUITE.erl b/test/http_SUITE.erl
index f4cf91c..072190d 100644
--- a/test/http_SUITE.erl
+++ b/test/http_SUITE.erl
@@ -43,7 +43,7 @@ idle_timeout_infinity(Config) ->
ConnPid = gun_open([{type, tcp}, {protocol, http}, {port, Port}|Config]),
_ = gun:post(ConnPid, "/echo/read_body", [], <<"TEST">>),
%% @todo Gun should have a debug function to retrieve the socket.
- Socket = element(9, element(2, sys:get_state(ConnPid))),
+ Socket = element(11, element(2, sys:get_state(ConnPid))),
Pid = get_remote_pid_tcp(Socket),
Ref = erlang:monitor(process, Pid),
receive
@@ -62,7 +62,7 @@ request_timeout_infinity(Config) ->
Port = ranch:get_port(name()),
ConnPid = gun_open([{type, tcp}, {protocol, http}, {port, Port}|Config]),
%% @todo Gun should have a debug function to retrieve the socket.
- Socket = element(9, element(2, sys:get_state(ConnPid))),
+ Socket = element(11, element(2, sys:get_state(ConnPid))),
Pid = get_remote_pid_tcp(Socket),
Ref = erlang:monitor(process, Pid),
receive