From: Evan Hunt Date: Thu, 2 Sep 2021 16:11:02 +0000 (-0700) Subject: increase 1-second timeout in fetchlimit X-Git-Tag: v9.16.21~2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6773c1144fac05014d2b0236a700d45986ab45bd;p=thirdparty%2Fbind9.git increase 1-second timeout in fetchlimit when "checking lame server clients are dropped below the hard limit", periodically a query is sent for a name for which the server is authoritative, to verify that legitimate queries can still be processed while the server is dealing with a flood of lame delegation queries. those queries used the same dig options as elsewhere in the fetchlimit test, including "+tries=1 +timeout=1". on slow systems, a 1-second timeout may be insufficient to get an answer even if the server is behaving well. this commit increases the timeout for the check queries to 2 seconds in hopes that will be enough to eliminate test failures in CI. (cherry picked from commit 45f330339c640dc0c27101942a2a107fa1972dd4) --- diff --git a/bin/tests/system/fetchlimit/tests.sh b/bin/tests/system/fetchlimit/tests.sh index bf388d2a248..a3ff655bcf3 100644 --- a/bin/tests/system/fetchlimit/tests.sh +++ b/bin/tests/system/fetchlimit/tests.sh @@ -162,7 +162,7 @@ success=0 touch ans4/norespond for try in 1 2 3 4 5; do burst b $try 400 - $DIGCMD a ${try}.example > dig.out.ns3.$try + $DIGCMD +time=2 a ${try}.example > dig.out.ns3.$try stat 400 || exceeded=`expr $exceeded + 1` grep "status: NOERROR" dig.out.ns3.$try > /dev/null 2>&1 && \ success=`expr $success + 1`