From 9ef25457717b043a611108d7f1165a0502036bd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 23 Mar 2020 12:21:18 +0100 Subject: Fix flow control test since it's more strict now --- test/flow_SUITE.erl | 5 ++--- 1 file 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), -- cgit v1.2.3