]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix a timing issue in notify test
authorNicki Křížek <nicki@isc.org>
Tue, 9 Dec 2025 10:24:40 +0000 (11:24 +0100)
committerNicki Křížek <nicki@isc.org>
Tue, 9 Dec 2025 13:23:17 +0000 (14:23 +0100)
There are a total of 22 notifies required before the start of the test:
20 for each x1..x20 and two for x21, as it has a couple of servers.

bin/tests/system/notify/tests.sh

index ba4c30a8611c8af01b599bc4f6dccfe5e7fcbac5..30c3d3e73625909301e763ceb2b8b7283d0dbe53 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" -ge 23 ] || ret=1
+  [ "$nr" -ge 22 ] || ret=1
   [ $ret = 0 ] && break
   sleep 1
 done
@@ -95,7 +95,7 @@ END {
        print "count:", count;
        print "average:", average;
        if (average < 0.180) exit(1);
-       if (count < 23) exit(1);
+       if (count < 22) exit(1);
 }' ns2/named.run >awk.out.ns2.test$n || ret=1
 test_end