aboutsummaryrefslogtreecommitdiffstats
path: root/test/rfc7231_SUITE.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2023-12-18 18:11:10 +0100
committerLoïc Hoguin <[email protected]>2023-12-18 18:17:09 +0100
commit627a4508b539f98fb632b4ff9a92a4f9c2c54890 (patch)
tree5d99c4af8c423251675e54ac88b29ede4a0777f5 /test/rfc7231_SUITE.erl
parent2558ba65ad3e39dd10ab65196af8f4dbb067f476 (diff)
downloadcowboy-627a4508b539f98fb632b4ff9a92a4f9c2c54890.tar.gz
cowboy-627a4508b539f98fb632b4ff9a92a4f9c2c54890.tar.bz2
cowboy-627a4508b539f98fb632b4ff9a92a4f9c2c54890.zip
Explicitly close the socket in some tests for speed ups
The socket staying open meant that the graceful shut down of the Cowboy listeners were waiting for the connections to be closed gracefully (or a timeout). Closing explicitly where it makes sense ensures we don't unnecessarily wait. This commit removes a full minute in the run time of all Cowboy test suites (minus examples).
Diffstat (limited to 'test/rfc7231_SUITE.erl')
-rw-r--r--test/rfc7231_SUITE.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rfc7231_SUITE.erl b/test/rfc7231_SUITE.erl
index 6c74391..a943d6d 100644
--- a/test/rfc7231_SUITE.erl
+++ b/test/rfc7231_SUITE.erl
@@ -230,7 +230,7 @@ expect(Config) ->
{<<"expect">>, <<"100-continue">>}
]),
{inform, 100, _} = gun:await(ConnPid, Ref),
- ok.
+ gun:close(ConnPid).
http10_expect(Config) ->
case config(protocol, Config) of