]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix startup notify rate test
authorMark Andrews <marka@isc.org>
Wed, 11 Dec 2024 02:32:18 +0000 (13:32 +1100)
committerMark Andrews <marka@isc.org>
Fri, 13 Dec 2024 01:06:33 +0000 (12:06 +1100)
The terminating conditions for the startup notify test would
occasionally get ~20 records or get +10 seconds of records due to
a bad terminating condition.  Additionally 20 samples lead to test
failures.  Fix the terminating condition to use the correct conditional
(-eq -> -ge) and increase the minimum number of log entries to
average over to 22.

(cherry picked from commit 46388d07a2849d8f82d52d334caf09c986daa27c)

bin/tests/system/notify/tests.sh

index befa841afc1d4a15f69e0501adf403fb38136aa9..c83d076308aea29b0e1e0b0019e01b6563bf0ed7 100644 (file)
@@ -46,7 +46,7 @@ for i in 1 2 3 4 5 6 7 8 9 10; do
   grep "status: NOERROR" dig.out.ns3.test$n >/dev/null || ret=1
   grep "flags:.* aa[ ;]" dig.out.ns3.test$n >/dev/null || ret=1
   nr=$(grep -c 'x[0-9].*sending notify to' ns2/named.run)
-  [ "$nr" -eq 20 ] || ret=1
+  [ "$nr" -ge 22 ] || ret=1
   [ $ret = 0 ] && break
   sleep 1
 done
@@ -94,7 +94,7 @@ END {
        print "count:", count;
        print "average:", average;
        if (average < 0.180) exit(1);
-       if (count < 20) exit(1);
+       if (count < 22) exit(1);
 }' ns2/named.run >awk.out.ns2.test$n || ret=1
 test_end