diff options
author | Loïc Hoguin <[email protected]> | 2020-03-23 12:21:18 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2020-03-23 12:24:46 +0100 |
commit | 9ef25457717b043a611108d7f1165a0502036bd2 (patch) | |
tree | a430c83c3b87155c62c0eacfe2c87de38f3495cd /test/flow_SUITE.erl | |
parent | f4a4020843574834719017ddd48b61e567eb37cb (diff) | |
download | gun-9ef25457717b043a611108d7f1165a0502036bd2.tar.gz gun-9ef25457717b043a611108d7f1165a0502036bd2.tar.bz2 gun-9ef25457717b043a611108d7f1165a0502036bd2.zip |
Fix flow control test since it's more strict now
Diffstat (limited to 'test/flow_SUITE.erl')
-rw-r--r-- | test/flow_SUITE.erl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/flow_SUITE.erl b/test/flow_SUITE.erl index 86c9c87..9050706 100644 --- a/test/flow_SUITE.erl +++ b/test/flow_SUITE.erl @@ -89,9 +89,8 @@ default_flow_http2(_) -> StreamRef2 = gun:get(ConnPid, "/", [], #{flow => 2}), {response, nofin, 200, _} = gun:await(ConnPid, StreamRef2), %% We set the flow to 2 but due to the ensure_window algorithm - %% we end up receiving *5* data messages before flow control kicks in, - %% equivalent to 3 SSE events. - {data, nofin, _} = gun:await(ConnPid, StreamRef2), + %% we end up receiving *4* data messages before we consume + %% the window. {data, nofin, _} = gun:await(ConnPid, StreamRef2), {data, nofin, _} = gun:await(ConnPid, StreamRef2), {data, nofin, _} = gun:await(ConnPid, StreamRef2), |