]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
wait for the ./NS lookup to complete
authorMark Andrews <marka@isc.org>
Thu, 23 Jan 2020 02:54:56 +0000 (13:54 +1100)
committerMark Andrews <marka@isc.org>
Thu, 23 Jan 2020 19:16:05 +0000 (19:16 +0000)
bin/tests/system/dnstap/tests.sh

index adb8303580ee37126da07f4ee315622bd9ad6d52..9fe748d3f68a3716670e600bb783c8914dd5a0bd 100644 (file)
@@ -44,7 +44,12 @@ wait_for_log 20 "all zones loaded" ns4/named.run || ret=1
 if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
+# both the 'a.example/A' lookup and the './NS' lookup to ns1
+# need tocomplete before reopening/rolling for the counts to
+# be correct.
+
 $DIG $DIGOPTS @10.53.0.3 a.example > dig.out
+wait_for_log 20 "(./NS): query_reset" ns1/named.run || true
 
 # check three different dnstap reopen/roll methods:
 # ns1: dnstap-reopen; ns2: dnstap -reopen; ns3: dnstap -roll