mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Fix tests failing following Gun update to master
This commit is contained in:
parent
86c16fdccc
commit
36836594f8
3 changed files with 15 additions and 19 deletions
|
@ -101,7 +101,7 @@ crash_in_init(Config) ->
|
|||
%% Receive a 500 error response.
|
||||
case gun:await(ConnPid, Ref) of
|
||||
{response, fin, 500, _} -> ok;
|
||||
{error, {stream_error, internal_error, _}} -> ok
|
||||
{error, {stream_error, {stream_error, internal_error, _}}} -> ok
|
||||
end.
|
||||
|
||||
crash_in_data(Config) ->
|
||||
|
@ -123,7 +123,7 @@ crash_in_data(Config) ->
|
|||
%% Receive a 500 error response.
|
||||
case gun:await(ConnPid, Ref) of
|
||||
{response, fin, 500, _} -> ok;
|
||||
{error, {stream_error, internal_error, _}} -> ok
|
||||
{error, {stream_error, {stream_error, internal_error, _}}} -> ok
|
||||
end.
|
||||
|
||||
crash_in_info(Config) ->
|
||||
|
@ -144,7 +144,7 @@ crash_in_info(Config) ->
|
|||
%% Receive a 500 error response.
|
||||
case gun:await(ConnPid, Ref) of
|
||||
{response, fin, 500, _} -> ok;
|
||||
{error, {stream_error, internal_error, _}} -> ok
|
||||
{error, {stream_error, {stream_error, internal_error, _}}} -> ok
|
||||
end.
|
||||
|
||||
crash_in_terminate(Config) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue