Fix a timing issue in notify test

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.

(cherry picked from commit 8f326a7af7)
This commit is contained in:
Nicki Křížek 2025-12-09 11:24:40 +01:00
parent 7cfc023b9c
commit de3dca4b49

View 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
@ -94,7 +94,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