aboutsummaryrefslogtreecommitdiffstats
path: root/test/rfc7231_SUITE.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/rfc7231_SUITE.erl')
-rw-r--r--test/rfc7231_SUITE.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/rfc7231_SUITE.erl b/test/rfc7231_SUITE.erl
index b1941c6..d6bcafa 100644
--- a/test/rfc7231_SUITE.erl
+++ b/test/rfc7231_SUITE.erl
@@ -115,10 +115,11 @@ do_proxy_loop(Transport, ClientSocket, OriginSocket) ->
{error, _} ->
ok
end;
+ %% Wait forever when a connection gets closed. We will exit with the test process.
{tcp_closed, _} ->
- ok;
+ timer:sleep(infinity);
{ssl_closed, _} ->
- ok;
+ timer:sleep(infinity);
Msg ->
error(Msg)
end.