diff options
author | Fredrik Gustafsson <[email protected]> | 2013-05-29 17:30:26 +0200 |
---|---|---|
committer | Fredrik Gustafsson <[email protected]> | 2013-05-29 17:30:26 +0200 |
commit | 0fc6481cc1459ceb3629bbc64a61684198974963 (patch) | |
tree | cc4fd81f9afad91d52b73cfea3540d7db1d3fcd3 /lib/inets/test/httpc_SUITE.erl | |
parent | a825b75eda765f13823490418b489c56c38f65c7 (diff) | |
parent | 048a67e6f34df0180bc8d2d0aba7f3b36d234a21 (diff) | |
download | otp-0fc6481cc1459ceb3629bbc64a61684198974963.tar.gz otp-0fc6481cc1459ceb3629bbc64a61684198974963.tar.bz2 otp-0fc6481cc1459ceb3629bbc64a61684198974963.zip |
Merge branch 'maint'
Diffstat (limited to 'lib/inets/test/httpc_SUITE.erl')
-rw-r--r-- | lib/inets/test/httpc_SUITE.erl | 9 |
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); |