0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

remove broken tests

This commit is contained in:
geeksilva97 2024-01-10 18:35:52 -03:00
parent 7788f4a352
commit a3e402db1f
2 changed files with 3 additions and 13 deletions

View file

@ -413,22 +413,12 @@ do(<<"stream_trailers">>, Req0, Opts) ->
<<"trailer">> => <<"grpc-status">>
}, Req0),
%% The size should be larger than StreamSize and ConnSize
ct_helper:ignore(cowboy_req, stream_trailers, 2),
cowboy_req:stream_body(<<0:80000000>>, nofin, Req),
cowboy_req:stream_trailers(#{
<<"grpc-status">> => <<"0">>
}, Req),
{ok, Req, Opts};
<<"set_cookie">> ->
ct_helper:ignore(cowboy_req, stream_trailers, 2),
Req = cowboy_req:stream_reply(200, #{
<<"trailer">> => <<"grpc-status">>
}, Req0),
%% The size should be larger than StreamSize and ConnSize
cowboy_req:stream_body(<<0:80000000>>, nofin, Req),
cowboy_req:stream_trailers(#{
<<"set-cookie">> => <<"name=cormano">>
}, Req),
{ok, Req, Opts};
_ ->
Req = cowboy_req:stream_reply(200, #{
<<"trailer">> => <<"grpc-status">>

View file

@ -1138,8 +1138,6 @@ stream_trailers(Config) ->
{<<"grpc-status">>, <<"0">>}
]} = do_trailers("/resp/stream_trailers", Config),
{_, <<"grpc-status">>} = lists:keyfind(<<"trailer">>, 1, RespHeaders),
{500, _, _} = do_trailers("resp/stream_trailers/set_cookie", Config),
ok.
stream_trailers_large(Config) ->
@ -1169,6 +1167,8 @@ do_trailers(Path, Config) ->
{<<"accept-encoding">>, <<"gzip">>},
{<<"te">>, <<"trailers">>}
]),
{response, nofin, Status, RespHeaders} = gun:await(ConnPid, Ref, infinity),
{ok, RespBody, Trailers} = gun:await_body(ConnPid, Ref, infinity),
gun:close(ConnPid),