0
Fork 0
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:
Loïc Hoguin 2019-09-06 15:37:42 +02:00
parent 86c16fdccc
commit 36836594f8
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
3 changed files with 15 additions and 19 deletions

View file

@ -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) ->