From ee8c50c5ab97dcaebc8932d093741fdb496e00f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sun, 29 Apr 2012 01:20:24 +0200 Subject: Fix and rework the HTTP test suite Use a proper HTTP client to run all tests. This client is currently undocumented and should not be used. Includes a few fixes: * Fix a bug in the max_keepalive test * Fix a bug with max_keepalive handling * Fix a bug in stream_body/1 where data was lost under some conditions The tests now run quite faster than before. All the tests now run twice: once for TCP, once for SSL. --- test/http_handler_long_polling.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/http_handler_long_polling.erl') diff --git a/test/http_handler_long_polling.erl b/test/http_handler_long_polling.erl index e838619..8d08265 100644 --- a/test/http_handler_long_polling.erl +++ b/test/http_handler_long_polling.erl @@ -6,7 +6,7 @@ init({_Transport, http}, Req, _Opts) -> erlang:send_after(500, self(), timeout), - {loop, Req, 9, 5000, hibernate}. + {loop, Req, 5, 5000, hibernate}. handle(_Req, _State) -> exit(badarg). -- cgit v1.2.3