diff options
author | Loïc Hoguin <[email protected]> | 2018-05-17 16:23:33 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-05-17 16:23:33 +0200 |
commit | 3d35319112186ee7d4cbe4fa40fcf168d28634a9 (patch) | |
tree | e99665bf84b226a5ae92583d6c3d6929062b2810 /test/old_http_SUITE.erl | |
parent | 9ee8904cc6cbfd08ba2e8fbd165facba9719534c (diff) | |
download | cowboy-3d35319112186ee7d4cbe4fa40fcf168d28634a9.tar.gz cowboy-3d35319112186ee7d4cbe4fa40fcf168d28634a9.tar.bz2 cowboy-3d35319112186ee7d4cbe4fa40fcf168d28634a9.zip |
Remove/convert tests about request body from old_http_SUITE
Diffstat (limited to 'test/old_http_SUITE.erl')
-rw-r--r-- | test/old_http_SUITE.erl | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/test/old_http_SUITE.erl b/test/old_http_SUITE.erl index 539ab04..e74f648 100644 --- a/test/old_http_SUITE.erl +++ b/test/old_http_SUITE.erl @@ -245,25 +245,6 @@ check_status(Config) -> {Ret, URL} end || {Status, URL} <- Tests]. -%% Check if sending requests whose size is around the MTU breaks something. -echo_body(Config) -> - MTU = ct_helper:get_loopback_mtu(), - _ = [begin - Body = list_to_binary(lists:duplicate(Size, $a)), - ConnPid = gun_open(Config), - Ref = gun:post(ConnPid, "/echo/body", [], Body), - {response, nofin, 200, _} = gun:await(ConnPid, Ref), - {ok, Body} = gun:await_body(ConnPid, Ref) - end || Size <- lists:seq(MTU - 500, MTU)], - ok. - -%% Check if sending request whose size is bigger than 1000000 bytes causes 413 -echo_body_max_length(Config) -> - ConnPid = gun_open(Config), - Ref = gun:post(ConnPid, "/echo/body", [], << 0:10000000/unit:8 >>), - {response, nofin, 413, _} = gun:await(ConnPid, Ref), - ok. - error_init_after_reply(Config) -> ConnPid = gun_open(Config), Ref = gun:get(ConnPid, "/handler_errors?case=init_after_reply"), |