From: Ondřej Surý Date: Fri, 14 Jan 2022 10:01:36 +0000 (+0100) Subject: Increase the dig timeout in resolver test to 10 seconds X-Git-Tag: v9.18.0~18^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29b9c8e7f5faace32c7d230deacd72944d3123dc;p=thirdparty%2Fbind9.git 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. --- diff --git a/bin/tests/system/resolver/tests.sh b/bin/tests/system/resolver/tests.sh index 548c579c71e..3196c87984e 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}