aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/test/httpc_SUITE.erl
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2013-05-29 17:29:47 +0200
committerFredrik Gustafsson <[email protected]>2013-05-29 17:29:47 +0200
commit048a67e6f34df0180bc8d2d0aba7f3b36d234a21 (patch)
tree2cc8a1b83da5450f806852bc4609b8f26a1f6dbb /lib/inets/test/httpc_SUITE.erl
parent3c12a584fc8b88625902342747c7b3d8a3eb06b3 (diff)
parente177b41eb2e4ce0996e323d8fd08d18f94b19964 (diff)
downloadotp-048a67e6f34df0180bc8d2d0aba7f3b36d234a21.tar.gz
otp-048a67e6f34df0180bc8d2d0aba7f3b36d234a21.tar.bz2
otp-048a67e6f34df0180bc8d2d0aba7f3b36d234a21.zip
Merge branch 'md/httpc-stream-once-fix/OTP-11122' into maint
* md/httpc-stream-once-fix/OTP-11122: Remove http_chunk:decode/4 as it is no longer used Fix {stream, {self, once}} in httpc
Diffstat (limited to 'lib/inets/test/httpc_SUITE.erl')
-rw-r--r--lib/inets/test/httpc_SUITE.erl9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/inets/test/httpc_SUITE.erl b/lib/inets/test/httpc_SUITE.erl
index 350192464e..0c35f284f7 100644
--- a/lib/inets/test/httpc_SUITE.erl
+++ b/lib/inets/test/httpc_SUITE.erl
@@ -1693,6 +1693,15 @@ receive_streamed_body(RequestId, Body, Pid) ->
ct:print("~p:receive_streamed_body -> requested next stream ~n", [?MODULE]),
receive
{http, {RequestId, stream, BinBodyPart}} ->
+ %% Make sure the httpc hasn't sent us the next 'stream'
+ %% without our request.
+ receive
+ {http, {RequestId, stream, _}} = Msg ->
+ ct:fail({unexpected_flood_of_stream, Msg})
+ after
+ 1000 ->
+ ok
+ end,
receive_streamed_body(RequestId,
<<Body/binary, BinBodyPart/binary>>,
Pid);