aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2023-01-23 11:44:16 +0100
committerLoïc Hoguin <[email protected]>2023-01-23 11:44:35 +0100
commitffa04a5019c0f09fb057c2c35bbaad979e36f9c5 (patch)
tree6c20f36365be952db242605ffe16c39c4ba076be /test
parent1e26d7e51688dfd1b69626996879f6d370d75274 (diff)
downloadgun-ffa04a5019c0f09fb057c2c35bbaad979e36f9c5.tar.gz
gun-ffa04a5019c0f09fb057c2c35bbaad979e36f9c5.tar.bz2
gun-ffa04a5019c0f09fb057c2c35bbaad979e36f9c5.zip
Linger a little at the end of a shutdown test connection
This is to avoid the TCP close eating data.
Diffstat (limited to 'test')
-rw-r--r--test/shutdown_SUITE.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/shutdown_SUITE.erl b/test/shutdown_SUITE.erl
index 87de32c..357fbfb 100644
--- a/test/shutdown_SUITE.erl
+++ b/test/shutdown_SUITE.erl
@@ -311,6 +311,7 @@ http1_response_connection_close_delayed_body(_) ->
timer:sleep(500),
ok = gen_tcp:send(ClientSocket, " world!")
after
+ timer:sleep(1000),
gen_tcp:close(ClientSocket)
end
end,