aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/handlers/resp_h.erl3
-rw-r--r--test/req_SUITE.erl2
2 files changed, 3 insertions, 2 deletions
diff --git a/test/handlers/resp_h.erl b/test/handlers/resp_h.erl
index 5bd4c72..cf21536 100644
--- a/test/handlers/resp_h.erl
+++ b/test/handlers/resp_h.erl
@@ -361,7 +361,8 @@ do(<<"stream_trailers">>, Req0, Opts) ->
Req = cowboy_req:stream_reply(200, #{
<<"trailer">> => <<"grpc-status">>
}, Req0),
- cowboy_req:stream_body(<<0:800000>>, nofin, Req),
+ %% The size should be larger than StreamSize and ConnSize
+ cowboy_req:stream_body(<<0:80000000>>, nofin, Req),
cowboy_req:stream_trailers(#{
<<"grpc-status">> => <<"0">>
}, Req),
diff --git a/test/req_SUITE.erl b/test/req_SUITE.erl
index 76abba9..d50b2ff 100644
--- a/test/req_SUITE.erl
+++ b/test/req_SUITE.erl
@@ -1068,7 +1068,7 @@ stream_trailers(Config) ->
stream_trailers_large(Config) ->
doc("Stream large body followed by trailer headers."),
- {200, RespHeaders, <<0:800000>>, [
+ {200, RespHeaders, <<0:80000000>>, [
{<<"grpc-status">>, <<"0">>}
]} = do_trailers("/resp/stream_trailers/large", Config),
{_, <<"grpc-status">>} = lists:keyfind(<<"trailer">>, 1, RespHeaders),