fix: test: Fix "checking startup notify rate limit" failure

Fix the loop terminating condition to get consistent sample sizes and increase the minimum number of samples from 20 to 40.

Closes #5091

Merge branch '5091-investigate-checking-startup-notify-rate-limit-failure' into 'main'

See merge request isc-projects/bind9!9894
This commit is contained in:
Mark Andrews
2024-12-13 00:07:23 +00:00

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" -eq 20 ] || ret=1
[ "$nr" -ge 40 ] || 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 < 20) exit(1);
if (count < 40) exit(1);
}' ns2/named.run >awk.out.ns2.test$n || ret=1
test_end