From 3d35319112186ee7d4cbe4fa40fcf168d28634a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 17 May 2018 16:23:33 +0200 Subject: Remove/convert tests about request body from old_http_SUITE --- test/old_http_SUITE.erl | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'test/old_http_SUITE.erl') 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"), -- cgit v1.2.3