mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-16 05:00:24 +00:00
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.
This commit is contained in:
parent
845d306df6
commit
ee8c50c5ab
8 changed files with 927 additions and 620 deletions
1226
test/http_SUITE.erl
1226
test/http_SUITE.erl
File diff suppressed because it is too large
Load diff
|
@ -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).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue