From ffa04a5019c0f09fb057c2c35bbaad979e36f9c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 23 Jan 2023 11:44:16 +0100 Subject: Linger a little at the end of a shutdown test connection This is to avoid the TCP close eating data. --- test/shutdown_SUITE.erl | 1 + 1 file changed, 1 insertion(+) 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, -- cgit v1.2.3