]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Relax the requirement for check_next_key_event() to <-60;60>
authorOndřej Surý <ondrej@sury.org>
Thu, 7 Nov 2019 09:39:43 +0000 (10:39 +0100)
committerOndřej Surý <ondrej@sury.org>
Thu, 7 Nov 2019 11:08:20 +0000 (12:08 +0100)
The original requirement for the check to pass was <-10;10> interval and
the first test was failing by 1 second.  As the minimum interval for
checking is 7200 seconds, the commit relaxes the requirement to <-60;60>
interval, which is still sane, but not that draconic.

bin/tests/system/kasp/tests.sh

index f1cfb25b7eaff925b190678f35336374475644d2..90acb1a8e3f2ce1a5264ed8bd30d85521119f746 100644 (file)
@@ -1511,10 +1511,10 @@ check_next_key_event() {
 
        _time=$(awk '{print $10}' < "keyevent.out.$ZONE.test$n")
 
-       # The next key event time must within 10 seconds of the
+       # The next key event time must within 60 seconds of the
        # expected time.
-       _expectmin=$((_expect-10))
-       _expectmax=$((_expect+10))
+       _expectmin=$((_expect-60))
+       _expectmax=$((_expect+60))
 
        test $_expectmin -le "$_time" || log_error "bad next key event time ${_time} for zone ${ZONE} (expect ${_expect})"
        test $_expectmax -ge "$_time" || log_error "bad next key event time ${_time} for zone ${ZONE} (expect ${_expect})"
@@ -1528,7 +1528,6 @@ check_next_key_event() {
 # TTL plus publish safety plus the zone propagation delay.  For the
 # zsk-prepub policy that means: 30d - 3600s + 1d + 1h = 2498400 seconds.
 check_next_key_event 2498400
-
 #
 # Zone: step2.zsk-prepub.autosign.
 #