mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Correct two tests that introspect the Gun state
It has changed in Gun 1.2.
This commit is contained in:
parent
a0f8d9b8b8
commit
f63609cb9c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue