]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Increase the dig timeout in resolver test to 10 seconds
authorOndřej Surý <ondrej@isc.org>
Fri, 14 Jan 2022 10:01:36 +0000 (11:01 +0100)
committerOndřej Surý <ondrej@isc.org>
Fri, 14 Jan 2022 10:13:26 +0000 (11:13 +0100)
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

index 548c579c71e7fb52309a2d3b35a09dc4234627cc..3196c87984ea535f34d9205465f0e75dab473a23 100755 (executable)
@@ -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}