aboutsummaryrefslogtreecommitdiffstats
path: root/test/http_SUITE.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-04-26 15:28:41 +0200
committerLoïc Hoguin <[email protected]>2013-04-26 15:28:41 +0200
commit12bd1afeedab23ef0a4fef302896dca5ee638ac2 (patch)
tree4322a7397673c15f9bcdfc8a7b3726857c99c5c6 /test/http_SUITE.erl
parent9ccfbb66ef24c84f34b3248057fe461f751389d5 (diff)
parent77d10822332a782266e1adf58fcb5cfc24cd84b7 (diff)
downloadcowboy-12bd1afeedab23ef0a4fef302896dca5ee638ac2.tar.gz
cowboy-12bd1afeedab23ef0a4fef302896dca5ee638ac2.tar.bz2
cowboy-12bd1afeedab23ef0a4fef302896dca5ee638ac2.zip
Merge branch 'fix-tests' of git://github.com/fishcakez/cowboy
Diffstat (limited to 'test/http_SUITE.erl')
-rw-r--r--test/http_SUITE.erl8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/http_SUITE.erl b/test/http_SUITE.erl
index 168503c..73ac127 100644
--- a/test/http_SUITE.erl
+++ b/test/http_SUITE.erl
@@ -499,7 +499,8 @@ The document has moved
_ = [{Status, Packet} = begin
Ret = quick_raw(Packet, Config),
{Ret, Packet}
- end || {Status, Packet} <- Tests].
+ end || {Status, Packet} <- Tests],
+ ok.
check_status(Config) ->
Tests = [
@@ -539,7 +540,7 @@ chunked_response(Config) ->
echo_body(Config) ->
Client = ?config(client, Config),
{ok, [{mtu, MTU}]} = inet:ifget("lo", [mtu]),
- [begin
+ _ = [begin
Body = list_to_binary(lists:duplicate(Size, $a)),
{ok, Client2} = cowboy_client:request(<<"POST">>,
build_url("/echo/body", Config),
@@ -547,7 +548,8 @@ echo_body(Config) ->
Body, Client),
{ok, 200, _, Client3} = cowboy_client:response(Client2),
{ok, Body, _} = cowboy_client:response_body(Client3)
- end || Size <- lists:seq(MTU - 500, MTU)].
+ 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) ->