aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/rfc7231_SUITE.erl8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/rfc7231_SUITE.erl b/test/rfc7231_SUITE.erl
index 8d2749b..90234d2 100644
--- a/test/rfc7231_SUITE.erl
+++ b/test/rfc7231_SUITE.erl
@@ -192,8 +192,12 @@ do_connect_h2(Transport) ->
<<"PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n",
Len:24, 4:8, 0:40, %% SETTINGS
Rest/bits>> = do_receive(OriginPid),
- <<_:Len/binary>> = Rest,
- <<_:24, 1:8, _/bits>> = do_receive(OriginPid),
+ _ = case Rest of
+ <<_:Len/binary>> ->
+ <<_:24, 1:8, _/bits>> = do_receive(OriginPid);
+ <<_:Len/binary, _:24, 1:8, _/bits>> ->
+ ok
+ end,
gun:close(ConnPid).
connect_through_multiple_proxies(_) ->