]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix 'lame server clients are dropped below the hard limit' test
authorMark Andrews <marka@isc.org>
Tue, 28 Feb 2023 03:10:56 +0000 (14:10 +1100)
committerMark Andrews <marka@isc.org>
Tue, 28 Feb 2023 06:45:59 +0000 (17:45 +1100)
The test was setting a minimum count for recursive clients which
was not always being met (e.g. 91 instead of 100) producing a false
positive.  Lower the lower bound on recursive clients for this
test to 1.

bin/tests/system/fetchlimit/tests.sh

index c0da8d2d7e7351c92969e54494e108e5c0e140ef..9ca4ff7a7eacdaca21943ac5ae1e29c22caa9c16 100644 (file)
@@ -165,7 +165,7 @@ touch ans4/norespond
 for try in 1 2 3 4 5; do
     burst b $try 400
     $DIGCMD +time=2 a ${try}.example > dig.out.ns3.$try
-    stat 100 400 || exceeded=$((exceeded + 1))
+    stat 1 400 || exceeded=$((exceeded + 1))
     grep "status: NOERROR" dig.out.ns3.$try > /dev/null 2>&1 && \
             success=$((success+1))
     grep "status: SERVFAIL" dig.out.ns3.$try > /dev/null 2>&1 && \