aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/flow_SUITE.erl5
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),