Skip to content

Commit

Permalink
Revert "Merge remote branch 'upstream/master'"
Browse files Browse the repository at this point in the history
This reverts commit 6d653ea, reversing
changes made to 02066a5.
  • Loading branch information
jj1bdx committed Feb 13, 2011
1 parent 6d653ea commit 2480477
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions src/mochiweb.erl
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ request_test() ->
"/foo/bar/baz wibble quux" = R:get(path),
ok.

-define(LARGE_TIMEOUT, 60).

single_http_GET_test() ->
do_GET(plain, 1).

Expand All @@ -135,11 +137,13 @@ multiple_http_GET_test() ->
multiple_https_GET_test() ->
do_GET(ssl, 3).

hundred_http_GET_test() ->
do_GET(plain, 100).
hundred_http_GET_test_() -> % note the underscore
{timeout, ?LARGE_TIMEOUT,
fun() -> ?assertEqual(ok, do_GET(plain,100)) end}.

hundred_https_GET_test() ->
do_GET(ssl, 100).
hundred_https_GET_test_() -> % note the underscore
{timeout, ?LARGE_TIMEOUT,
fun() -> ?assertEqual(ok, do_GET(ssl,100)) end}.

single_128_http_POST_test() ->
do_POST(plain, 128, 1).
Expand All @@ -165,11 +169,13 @@ multiple_100k_http_POST_test() ->
multiple_100K_https_POST_test() ->
do_POST(ssl, 102400, 3).

hundred_128_http_POST_test() ->
do_POST(plain, 128, 100).
hundred_128_http_POST_test_() -> % note the underscore
{timeout, ?LARGE_TIMEOUT,
fun() -> ?assertEqual(ok, do_POST(plain, 128, 100)) end}.

hundred_128_https_POST_test() ->
do_POST(ssl, 128, 100).
hundred_128_https_POST_test_() -> % note the underscore
{timeout, ?LARGE_TIMEOUT,
fun() -> ?assertEqual(ok, do_POST(ssl, 128, 100)) end}.

do_GET(Transport, Times) ->
PathPrefix = "/whatever/",
Expand Down

0 comments on commit 2480477

Please sign in to comment.