]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
tcp test: sleep for 1 second before gathering stats to make
authorWitold Kręcicki <wpk@isc.org>
Wed, 28 Nov 2018 15:01:06 +0000 (15:01 +0000)
committerWitold Kręcicki <wpk@isc.org>
Mon, 3 Dec 2018 18:49:48 +0000 (18:49 +0000)
sure that the stats are there

bin/tests/system/tcp/tests.sh

index 89916d780138e914fd2bd96b1ca0400c49d12ffe..da64c3509f249e846bb983ce49c45bd00f0e6eaf 100644 (file)
@@ -28,6 +28,7 @@ ntcp20=`grep "TCP requests received" ns2/named.stats | tail -1 | awk '{print $1}
 echo_i "check TCP transport"
 ret=0
 $DIG $DIGOPTS @10.53.0.3 txt.example. > dig.out.3
+sleep 1
 $RNDCCMD -s 10.53.0.1 stats > /dev/null 2>&1
 $RNDCCMD -s 10.53.0.2 stats > /dev/null 2>&1
 ntcp11=`grep "TCP requests received" ns1/named.stats | tail -1 | awk '{print $1}'`
@@ -42,6 +43,7 @@ status=`expr $status + $ret`
 echo_i "check TCP forwarder"
 ret=0
 $DIG $DIGOPTS @10.53.0.4 txt.example. > dig.out.4
+sleep 1
 $RNDCCMD -s 10.53.0.1 stats > /dev/null 2>&1
 $RNDCCMD -s 10.53.0.2 stats > /dev/null 2>&1
 ntcp12=`grep "TCP requests received" ns1/named.stats | tail -1 | awk '{print $1}'`