From fe2f744675e7169d49b2d3c84dce60cbaa16b334 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 7 Aug 2019 10:06:07 +0200 Subject: Timeout options tests taking long is not a failure --- test/gun_SUITE.erl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'test') 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(_) -> -- cgit v1.2.3