aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-08-07 10:06:07 +0200
committerLoïc Hoguin <[email protected]>2019-08-07 10:06:07 +0200
commitfe2f744675e7169d49b2d3c84dce60cbaa16b334 (patch)
tree3c686f0b71a2df783b8222634ea8add0b867b9dd
parente1a4a64331cfd70d1a2d0a1f199b86612d8b3d92 (diff)
downloadgun-fe2f744675e7169d49b2d3c84dce60cbaa16b334.tar.gz
gun-fe2f744675e7169d49b2d3c84dce60cbaa16b334.tar.bz2
gun-fe2f744675e7169d49b2d3c84dce60cbaa16b334.zip
Timeout options tests taking long is not a failure
-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(_) ->