From 29b9c8e7f5faace32c7d230deacd72944d3123dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Fri, 14 Jan 2022 11:01:36 +0100 Subject: [PATCH] Increase the dig timeout in resolver test to 10 seconds The resolver system tests was exhibiting often intermitten failures, increase the timeout from default 5 second to 10 seconds to give the dig more leeway for providing an answer. --- bin/tests/system/resolver/tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/tests/system/resolver/tests.sh b/bin/tests/system/resolver/tests.sh index 548c579c71..3196c87984 100755 --- a/bin/tests/system/resolver/tests.sh +++ b/bin/tests/system/resolver/tests.sh @@ -11,7 +11,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -# shellcheck source=conf.sh +# shellcheck source=../conf.sh . ../conf.sh dig_with_opts() { @@ -839,7 +839,7 @@ nextpart ns5/named.run > /dev/null # bind to local address so that addresses in log messages are consistent # between platforms; use tcp to get SERVFAIL rather than timeout on slow # machines -dig_with_opts @10.53.0.5 -b 10.53.0.5 +tcp tcpalso.no-questions. a +tries=3 +time=4 > dig.ns5.out.${n} || ret=1 +dig_with_opts @10.53.0.5 -b 10.53.0.5 +tcp tcpalso.no-questions. a +tries=3 +timeout=10 > dig.ns5.out.${n} || ret=1 grep "status: SERVFAIL" dig.ns5.out.${n} > /dev/null || ret=1 check_namedrun() { nextpartpeek ns5/named.run > nextpart.out.${n}