aboutsummaryrefslogtreecommitdiffstats
path: root/test/gun_SUITE.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/gun_SUITE.erl')
-rw-r--r--test/gun_SUITE.erl7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/gun_SUITE.erl b/test/gun_SUITE.erl
index e16f165..7d0ace8 100644
--- a/test/gun_SUITE.erl
+++ b/test/gun_SUITE.erl
@@ -83,8 +83,11 @@ do_timeout(Opt, Timeout) ->
receive
{'DOWN', Ref, process, Pid, {shutdown, _}} ->
ok
- after 5000 ->
- error(timeout)
+ after 2000 ->
+ %% This is not an error, the timeout was accepted but
+ %% the connect or domain lookup is just taking too long,
+ %% for example when it was set to infinity.
+ gun:close(Pid)
end.
detect_owner_down(_) ->