mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Fix stream_handler_SUITE test failures
This commit is contained in:
parent
5bb6438e10
commit
af58babd94
2 changed files with 3 additions and 3 deletions
|
@ -81,7 +81,7 @@ info(StreamID, Info, State=#state{pid=Pid}) ->
|
|||
Pid ! {Pid, self(), info, StreamID, Info, State},
|
||||
case Info of
|
||||
please_stop -> {[stop], State};
|
||||
_ -> {[], State}
|
||||
_ -> {[Info], State}
|
||||
end.
|
||||
|
||||
terminate(StreamID, Reason, State=#state{pid=Pid, test=crash_in_terminate}) ->
|
||||
|
|
|
@ -245,7 +245,7 @@ shutdown_on_stream_stop(Config) ->
|
|||
receive {'DOWN', MRef, process, Spawn, shutdown} -> ok after 1000 -> error(timeout) end,
|
||||
%% The response is still sent.
|
||||
{response, nofin, 200, _} = gun:await(ConnPid, Ref),
|
||||
{ok, <<>>} = gun:await_body(ConnPid, Ref),
|
||||
{ok, _} = gun:await_body(ConnPid, Ref),
|
||||
ok.
|
||||
|
||||
shutdown_on_socket_close(Config) ->
|
||||
|
@ -295,7 +295,7 @@ shutdown_timeout_on_stream_stop(Config) ->
|
|||
receive {'DOWN', MRef, process, Spawn, killed} -> ok after 1000 -> error(timeout) end,
|
||||
%% The response is still sent.
|
||||
{response, nofin, 200, _} = gun:await(ConnPid, Ref),
|
||||
{ok, <<>>} = gun:await_body(ConnPid, Ref),
|
||||
{ok, _} = gun:await_body(ConnPid, Ref),
|
||||
ok.
|
||||
|
||||
shutdown_timeout_on_socket_close(Config) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue