]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
fix fetchlimit test
authorEvan Hunt <each@isc.org>
Thu, 24 Jan 2019 06:00:00 +0000 (22:00 -0800)
committerEvan Hunt <each@isc.org>
Fri, 25 Jan 2019 08:44:11 +0000 (00:44 -0800)
use TCP for the test queries in between UDP bursts; this avoids
congestion issues that interfered with the test on windows

bin/tests/system/fetchlimit/tests.sh

index f360a86bcd7a7c9b4adae9ca3bb22f4f5c05cda0..747ae07dfc9891e323ac4eb871bf35b6c190089b 100644 (file)
@@ -12,7 +12,7 @@
 SYSTEMTESTTOP=..
 . $SYSTEMTESTTOP/conf.sh
 
-DIGCMD="$DIG @10.53.0.3 -p ${PORT} +tries=1 +time=1"
+DIGCMD="$DIG @10.53.0.3 -p ${PORT} +tcp +tries=1 +time=1"
 RNDCCMD="$RNDC -p ${CONTROLPORT} -s 10.53.0.3 -c ../common/rndc.conf"
 
 burst() {
@@ -112,9 +112,6 @@ quota=$5
 if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
-if [ $ret != 0 ]; then echo_i "failed"; fi
-status=`expr $status + $ret`
-
 copy_setports ns3/named2.conf.in ns3/named.conf
 rndc_reconfig ns3 10.53.0.3
 
@@ -165,7 +162,7 @@ success=0
 touch ans4/norespond
 for try in 1 2 3 4 5; do
     burst b $try 400
-    $DIG @10.53.0.3 -p ${PORT}  a ${try}.example > dig.out.ns3.$try
+    $DIGCMD a ${try}.example > dig.out.ns3.$try
     stat 380 || exceeded=`expr $exceeded + 1`
     grep "status: NOERROR" dig.out.ns3.$try > /dev/null 2>&1 && \
             success=`expr $success + 1`