From af47090d99d68f23107a65cbddea5d0231269484 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 28 Feb 2023 14:10:56 +1100 Subject: [PATCH] Fix 'lame server clients are dropped below the hard limit' test 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/tests/system/fetchlimit/tests.sh b/bin/tests/system/fetchlimit/tests.sh index c0da8d2d7e..9ca4ff7a7e 100644 --- a/bin/tests/system/fetchlimit/tests.sh +++ b/bin/tests/system/fetchlimit/tests.sh @@ -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 && \