From: Witold Kręcicki Date: Wed, 28 Nov 2018 15:01:06 +0000 (+0000) Subject: tcp test: sleep for 1 second before gathering stats to make X-Git-Tag: v9.13.5~16^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9532e3256eb40c89a77bfa1071192303d695da9d;p=thirdparty%2Fbind9.git tcp test: sleep for 1 second before gathering stats to make sure that the stats are there --- diff --git a/bin/tests/system/tcp/tests.sh b/bin/tests/system/tcp/tests.sh index 89916d78013..da64c3509f2 100644 --- a/bin/tests/system/tcp/tests.sh +++ b/bin/tests/system/tcp/tests.sh @@ -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}'`