diff options
author | Tony Han <[email protected]> | 2019-12-23 21:00:35 +0800 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2019-12-31 11:06:31 +0100 |
commit | 43f1754f33d6609f55dc0140a3b7c0e1b465ab9e (patch) | |
tree | f516e8d3edf2716789a4a250283bb46176b3a7bb /test/handlers | |
parent | e81cd6328bc1fee0df51a8efc84e0145f1f3036a (diff) | |
download | cowboy-43f1754f33d6609f55dc0140a3b7c0e1b465ab9e.tar.gz cowboy-43f1754f33d6609f55dc0140a3b7c0e1b465ab9e.tar.bz2 cowboy-43f1754f33d6609f55dc0140a3b7c0e1b465ab9e.zip |
Test trailers bug when there are data frames in queue
Diffstat (limited to 'test/handlers')
-rw-r--r-- | test/handlers/resp_h.erl | 3 |
1 files changed, 2 insertions, 1 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), |