diff options
author | Loïc Hoguin <[email protected]> | 2013-01-21 14:34:33 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-01-21 14:34:33 +0100 |
commit | 81cfc1651e708261e17242efb353259f6bad8182 (patch) | |
tree | 908b07d70e2cbfba832f31e138266f66ec6be915 /test/http_SUITE.erl | |
parent | 823a82b8f2ebb5e00140ada1d1ba17e27df8d97a (diff) | |
download | cowboy-81cfc1651e708261e17242efb353259f6bad8182.tar.gz cowboy-81cfc1651e708261e17242efb353259f6bad8182.tar.bz2 cowboy-81cfc1651e708261e17242efb353259f6bad8182.zip |
Improve keepalive tests
Diffstat (limited to 'test/http_SUITE.erl')
-rw-r--r-- | test/http_SUITE.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/http_SUITE.erl b/test/http_SUITE.erl index 67920a8..4791f36 100644 --- a/test/http_SUITE.erl +++ b/test/http_SUITE.erl @@ -586,7 +586,8 @@ keepalive_max(Config) -> URL = build_url("/", Config), ok = keepalive_max_loop(Client, URL, 50). -keepalive_max_loop(_, _, 0) -> +keepalive_max_loop(Client, _, 0) -> + {error, closed} = cowboy_client:response(Client), ok; keepalive_max_loop(Client, URL, N) -> Headers = [{<<"connection">>, <<"keep-alive">>}], @@ -605,7 +606,8 @@ keepalive_nl(Config) -> URL = build_url("/", Config), ok = keepalive_nl_loop(Client, URL, 10). -keepalive_nl_loop(_, _, 0) -> +keepalive_nl_loop(Client, _, 0) -> + {error, closed} = cowboy_client:response(Client), ok; keepalive_nl_loop(Client, URL, N) -> Headers = [{<<"connection">>, <<"keep-alive">>}], |