]> 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 12:26:45 +0000 (12:26 +0000)
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.

(cherry picked from commit af47090d99d68f23107a65cbddea5d0231269484)

bin/tests/system/fetchlimit/tests.sh

index c10bee667778c2cd3f0e45279b76d400a14049c9..d34a817ad3c3ecbb0e0ce5b2261b339d2d98488f 100644 (file)
@@ -167,7 +167,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 && \