diff options
author | Loïc Hoguin <[email protected]> | 2018-05-18 16:53:38 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-05-18 16:56:54 +0200 |
commit | 07d454bdb74131b1b0163f7b7f9a5466abb4a7c3 (patch) | |
tree | 83f5c1456b46b5c6048eda1ff472c4160ea80036 | |
parent | 6c048751117312b427b28db13797c384f30ffea8 (diff) | |
download | cowboy-07d454bdb74131b1b0163f7b7f9a5466abb4a7c3.tar.gz cowboy-07d454bdb74131b1b0163f7b7f9a5466abb4a7c3.tar.bz2 cowboy-07d454bdb74131b1b0163f7b7f9a5466abb4a7c3.zip |
Improve the limit_requests_keepalive test
We now check that the connection gets closed.
-rw-r--r-- | test/rfc7230_SUITE.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/rfc7230_SUITE.erl b/test/rfc7230_SUITE.erl index a45d8f2..eb5f225 100644 --- a/test/rfc7230_SUITE.erl +++ b/test/rfc7230_SUITE.erl @@ -18,6 +18,7 @@ -import(ct_helper, [doc/1]). -import(cowboy_test, [gun_open/1]). +-import(cowboy_test, [gun_down/1]). -import(cowboy_test, [raw_open/1]). -import(cowboy_test, [raw_send/2]). -import(cowboy_test, [raw_recv_head/1]). @@ -1428,7 +1429,7 @@ limit_requests_keepalive(Config) -> {response, nofin, 200, RespHeaders} = gun:await(ConnPid, Ref), {ok, <<"Hello world!">>} = gun:await_body(ConnPid, Ref), {_, <<"close">>} = lists:keyfind(<<"connection">>, 1, RespHeaders), - ok. + gun_down(ConnPid). %skip_request_body_by_closing_connection(Config) -> %%A server that doesn't want to read the entire body of a message |